Jump to content

Jason28

Members
  • Posts

    132
  • Joined

  • Last visited

Everything posted by Jason28

  1. Hello, I never dealt with such a feature before but I found a small script online that I am editing that works just fine. The problem is that it includes all of the directories in the path of my site in the zip. So if the path of my webhost is: /home/bob/files/ the zip will create a folder such as /home (inside that folder) /bob (inside that folder) /files (then the zipped files I wanted). I just want the zip files and I did store them out of the www/public_html directory to prevent people from downloading the files directly from the web but is there no way to make it not include all of those directories in the zip and only show the files? If so I will post the code that I have. Thanks
  2. Hello, I use the following to block India spam from posting all over my site as it is a huge issue: deny from 14.192.128.0/19 deny from 27.54.120.0/22 deny from 27.96.88.0/22 and so on. However there is a page where legit people from india buy services. Can I allow that one page but deny the rest of the site? I tried searching but couldn't find anything about that.
  3. I have spent the past two days researching and trying to figure it out but I cannot. I figured this would be an easy two line code for someone who understands JQuery. Sorry but not all of us are rich or living at home with our parents. I learned about 6 programming languages and suddenly JQuery came along and I have to become a doctor in it as well just for it to be replaced again in a couple of years? My brain cannot hold all of that info and my bills are not being forgiving.
  4. Hello, I tried searching on the net but couldn't find anything that was similar to what I am doing. I want to use Google +1 so that when the user clicks on it, their ID is sent to a PHP file where I can add code to insert into the DB. Here is the Google code: <g:plusone size="medium" callback="earn" href="http://www.site.com/"></g:plusone> I noticed the callback="" in the g tag acts like an onclick function as I tested it and made it alert something in javascript when I created a javascript function. Could you please provide me with the JQuery needed to pass an ID from that plusone tag to a PHP file please? Thank you.
  5. Hello, the following article I found shows how to use jquery to click on an image and delete it from an html table row: http://jquery-howto.blogspot.com/200...ser-click.html I do not use html tables, I use div tags. How can I modify the code to work with <div> tags please? My html looks like this: my html looks like this: <div><a href="http://google.com">Google</a><img src="templates/images/red-x.png" class="delete" alt="Remove site" /></div> <div><a href="http://yahoo.com">Yahoo</a><img src="templates/images/red-x.png" class="delete" alt="Remove site" /></div>
  6. Thanks, yes I am basically asking how to change a function that works with one case to make it work with multiple rows. I want to be able to understand what changes are made so I can edit existing functions that are standalone.
  7. Right I understand that. I am asking how to write the javascript to work with multiple IDs so that the output is different for each <tr><td> row
  8. Thanks, I am slowly trying to learn javascript so I am doing some test code and here is what I have so far to make an area of text get inserted into a text area and later I could use jquery to update it in the database. Here is what I have so far: function displayDate(str) { document.getElementById("demo").innerHTML="<textarea name=\"editdesc\" cols=\"120\">" + str + "</textarea> <input type=\"button\" onclick=\"UpdateRow()\" value=\"Update\">"; } function UpdateRow() { document.write("hello"); } then the html that uses multiple entries: <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td><b>Description</b>: <span id="demo" onclick="displayDate('Admin, hello! here are having problems with your site. Write me. ECK 98956785664')">Admin, hello! here are having problems with your site. Write me. ECK 98956785664</span></td> </tr> <tr> <b>Description</b>: <span id="demo" onclick="displayDate('A question for both genders. Guys, do you feel the need to go all out and spend all your money on an engagement ring to make your girl happy? Ladies, does the cost of the ring actually increase how much love you feel for your man? I dont have a large amount of money but the ring I bought for my woman the other day s')">A question for both genders. Guys, do you feel the need to go all out and spend all your money on an engagement ring to make your girl happy? Ladies, does the cost of the ring actually increase how much love you feel for your man? I dont have a large amount of money but the ring I bought for my woman the other day s</span> </td> </tr> </table>
  9. Like if I want to use the same function on multiple entries
  10. I know that there are tutorials, but I would like to understand what small changes are needed to change a javascript function from working with one row to working with multiple rows. For example, if you use: <script type='text/javascript"> function displayDate() { document.getElementById("demo").innerHTML=Date(); } </script> <span id="demo" onclick="displayDate()">description</span> That works, but only with one row on the page. How can I change that to work with multiple rows?
  11. Hello, could anyone please provide me with a function where I can add a number like 4 for example, and when the option to select 4 is selected from a dropdown form, it will insert 4 rows of whatever html I want to add into the page? So if they select 2, two rows are created and 4, 4 rows are created. Thanks.
  12. Thanks, would it be hard top add an alert error if it is anything but a # and numeric values?
  13. Hello, I read this in a book and it looked like very simple code. I would like to be enter a hex color in a field like #000000, and have it display that color in a <span> or <div> beside that field automatically. Could you please provide me with a code example that does this? Thanks!
  14. Hi guys, I hope you can help me with this as this would really save me a ton of time. Could you give me a code example where I can click on some text and that text will then be inserted into a text field with a submit button, so when I hit submit it updates? I can do the php mysql part, but I would like to be able to edit listings without having to go through multiple pages. This would also have to have multiple IDs so I can use the same feature for all of the listings on the page. Thanks a lot for your time EDIT Ah I believe I found a script called "Ajax Instant Edit" which looks like it does what I want. Does anyone know how to edit it so I can use it for multiple listings on the same page?
  15. Well sorry but I tried learning how to do this for many years but I just do not understand it. If you only give me part of the code I cannot do anything with it. I understand you do not have to do anything, but this is just a waste of time for us since I cannot do anything with half of a script. Could anyone else help please?
  16. Thanks for replying. Could you please provide me with the html to use along with this javascript? A link that would change the text like "open links in same window" and when clicked, it changes to "open links in new window"? Thanks.
  17. Hello, could anyone please provide me with a working example of a javascript that detects all of the active urls on the page and opens them in another window but has the option of opening all links normally? (without target="_blank"). So someone can click a link to disable links opening in a new window, but on default they will open in a new window. Could you please provide a working example? Thanks.
  18. Thanks that is what I needed I knew it couldn't have been that complex.
  19. Sorry, I never received email notifications that anyone replied to this topic. Well your examples work kinda, smerny your example keeps the row the same color and doesn't change back on mouseout. Xeno, your example changes the text color and not the background colors of the rows. I simple want the same feature that just about every corporate site uses. For example, look at RealTracs: http://www.realtracs.com/PropertyDetail.aspx?&ByMLS=1&PropertyClass=RES&DMQL=(MlsNum%3d1043588)%2c&AreaID=8&MlsNum=1043588&Digest=61fEwGSSW3oELMJza71jSw If you mouseover the rows on the right, you will see that they light up blue.
  20. Well, this topic could probably go in either the AJAX or this forum. I am using the AJAX word suggestor here: http://www.dynamicajax.com/fr/AJAX_Suggest_Tutorial-271_290_312.html It basically displays related words like Google does when you enter in text in the search field. The problem is that there is a 1px black border around the results, so when you first visit the site, you see a little black square. I would like for it to only display this when text is entered, basically just removing that little box. You can download the source code to see what I mean: http://www.dynamicajax.com/tutorials/SimpleSuggest.zip Or if you like I can pm you my site since I intergrated it into my site and tweaked the query to select users from my database instead of keywords from a DB. Thanks.
  21. Works perfectly thanks a lot Just had to switch the height and width vars around. Man it's like you guys get paid to be nice and helpful
  22. Sorta, it opens in another window, but not a small window with set width/height and stuff.
  23. Nope no form action please. The button is within another form, so I had to use the location for it the first time to prevent conflicts. I basically just use the button for cosmetic purposes, not to serve as a submit button. Thanks!
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.