
Jason28
Members-
Posts
132 -
Joined
-
Last visited
Everything posted by Jason28
-
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
-
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.
-
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.
-
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.
-
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>
-
Simple question, how to make javascript work with mutliple rows?
Jason28 replied to Jason28's topic in Javascript Help
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. -
Simple question, how to make javascript work with mutliple rows?
Jason28 replied to Jason28's topic in Javascript Help
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 -
Simple question, how to make javascript work with mutliple rows?
Jason28 replied to Jason28's topic in Javascript Help
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> -
Simple question, how to make javascript work with mutliple rows?
Jason28 replied to Jason28's topic in Javascript Help
Like if I want to use the same function on multiple entries -
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?
-
Thanks guys
-
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.
-
Thanks, would it be hard top add an alert error if it is anything but a # and numeric values?
-
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!
-
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?