|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#31
|
||||
|
||||
|
This ought to work.
PHP Code:
__________________
[read: PHP Security Guide | CSRF | PCRE Modifiers | Encryption | Form Processing | File Validation] [tools: PHPEd | PHP Docs | jQuery | CodeIgniter | Drupal | SwiftMailer | CKEditor | reCAPTCHA] Last edited by simshaun : July 1st, 2009 at 04:09 PM. |
|
#32
|
||||
|
||||
|
It says Error on page at the bottom of the browser... one of the javascript error messages...
|
|
#33
|
||||
|
||||
|
What is the error?
Try re-copying and pasting the code and ensure you didnt cause the error somehow. I'm testing it on my pc and it works fine without errors. |
|
#34
|
||||
|
||||
|
Quote:
Ok.. so maybe I did cause it.. not sure what I did though.. Anyways, no error this time, but when I click the folder tree, nothing pops up... |
|
#35
|
||||
|
||||
|
I assume you changed the url parameter in
PHP Code:
Also, the JavaScript is designed to only operate on the anchors which have a value in the rel attribute. The only anchors I see that match that condition are the first level of counties under each state. Finally, you need to be testing this through localhost or a server on the web. (I assume you are, but just making sure.) Last edited by simshaun : July 1st, 2009 at 04:16 PM. |
|
#36
|
||||
|
||||
|
Quote:
I didnt change the url parameter. To make things easier in following along, I've left it as initially created.. so my php page is called yourbannerloader.php right now. Ok... so nothing was being displayed, however, I added the $county=$_POST['county']; line to the yourbannerloader.php Yay.... Now it does display the counties. However, for the states and cities, it displays undefined... |
|
#37
|
||||
|
||||
|
are you using firefox to troubleshoot this? The reason I ask, you can get very detailed information with firefox and the firebug addon, even step through the javascript while it is executing.
|
|
#38
|
||||
|
||||
|
Quote:
I use both FF and IE... Mainly been using IE though.. |
|
#39
|
||||
|
||||
|
If you are using my code, you should have nothing that displays undefined for cities and states because those links do not have a rel="" attribute.
|
|
#40
|
||||
|
||||
|
Quote:
Ok... Here you can take a look at the site: linky The middle column will have info regarding the various items... item name, price, etc. I am thinking I can do something similar to what we're doing now for this part... create another div and such to push the info to. The right column is where the banners will go... If you click on either State or City names, it shows undefined on the right... How hard would it be to push a 2nd value over to a div? Basically, I will need to push multiple info over to the middle column, but may want to push the State info to the banner area. Thanks. |
|
#41
|
||||
|
||||
|
Hmm thats odd. Try this and see if it helps. (I'm not sure why its throwing undefined. Hopefully the additional check to see if the rel attribute is undefined will help.)
PHP Code:
|
|
#42
|
||||
|
||||
|
That one seems to work!
![]() I'm assuming I can take out the alert line, right? |
|
#43
|
||||
|
||||
|
Yep, you can take out the alert now.
|
|
#44
|
||||
|
||||
|
If you are done testing, yea.
Responding to your previous post, you could do what you were talking about with the middle column and allowing States and Cities to have banners, but it would take some more work and modifications (naturally). Which do you want to do first? |
|
#45
|
||||
|
||||
|
Quote:
Sweet.. you guys rock! Now... um... if it's not to much trouble, how would I pass through a 2nd variable? For the content area, I think there will be anywhere from 7-15 items that need to get passed via post so that I can display certain information. Also, he may want to pass the State info as well... I'm about to call him to talk him out of that, but would still be good to know... Thanks again ![]() |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > PHP Development > PHP-General - $_GET using an iframe |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|