SunQuest
           Client Side Things
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsOther TechnologiesClient Side Things

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
You eat, breathe and sleep innovation. Build your mobile intelligence with BlackBerry® experts this July. Register Today!
  #1  
Old July 19th, 2003, 06:46 PM
szms szms is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 107 szms User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
Browser problem (Netscape)

Hi there!!

I am using Netscape 4.8 for browsing the following code but it's not working but at the same time it's working in IE, Galeon and Mozilla. Coule you plese let me know what I have to to in order to work it properly with Netscape.

Thank you.

php Code:
Original - php Code
  1.  
  2. <html>
  3.  
  4. <head>
  5. <title>Option Selection and Submission...</title>
  6. <script type="text/javascript">
  7. <!--
  8. function updateTextBox(selectObj, textBoxObj)
  9. {
  10.     var index = selectObj.selectedIndex;
  11.     var selection = selectObj.options[index].text;
  12.  
  13.     textBoxObj.value += selection + "n";
  14. }
  15. // -->
  16. </script>
  17. </head>
  18.  
  19. <body>
  20.     <h1>Multiple User Selection Submission</h1>
  21.     <hr/>
  22.  
  23.     <p>Make your selections below:</p>
  24.     <form name="selection_form">
  25.  
  26.         <?php
  27.         $Domain_Name[] = "Cricket";
  28.         $Domain_Name[] = "Soccer";
  29.         $Domain_Name[] = "Table Tennis";
  30.         $Domain_Name[] = "Chess";
  31.         ?>
  32.         <br>
  33.         <select size="5" name="user_choice" onclick="updateTextBox(this, currentSelections)">
  34.         <?php
  35.             foreach ($Domain_Name as $Existing_Item) print " <option value="$Existing_Item ">$Existing_Item</option>";
  36.         ?>
  37.         </select>
  38.  
  39.         <hr/>
  40.  
  41.         <textarea name = 'currentSelections' readonly="readonly" rows = "20" cols = "45"></textarea>
  42.         <input type="submit" value="Submit" name="Submit"/>
  43.     </form>
  44.  
  45.  
  46. </body>
  47.  
  48. </html>
  49.  

Reply With Quote
  #2  
Old July 19th, 2003, 07:29 PM
honcho's Avatar
honcho honcho is offline
Contributing User
Codewalkers Beginner (1000 - 1499 posts)
 
Join Date: Apr 2007
Location: Cape Cod
Posts: 1,347 honcho User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 52 m 2 sec
Reputation Power: 3
RE: Browser problem (Netscape)

Since PHP code is executed on the server, it is of only secondary importance. What does the HTML the browser is getting look like?

Reply With Quote
  #3  
Old July 19th, 2003, 07:58 PM
Ashkhan Ashkhan is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 372 Ashkhan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 24 m 57 sec
Reputation Power: 2
RE: Browser problem (Netscape)

Yes, can you be more specific?

And why does Netscape 4.8 bother you at all? Not many people are using it nowadays.

Reply With Quote
  #4  
Old July 20th, 2003, 12:38 PM
szms szms is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 107 szms User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: Browser problem (Netscape)

I found one solution but not a very satisfactory one. If I use the latest version of Netscape for example 7.1 it's works perfectly. But still I want to know why it's not working in 4.7. Can any one tell me which least version of Netscape I need to use to activate this.

Thank you.


Reply With Quote
  #5  
Old July 25th, 2003, 03:30 PM
crisp crisp is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Holland
Posts: 336 crisp User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: Browser problem (Netscape)

Code:
onclick="updateTextBox(this, currentSelections)"

it wouldn't surprise me if NS4.x doesn't see the textbox named currentSelections as a property of the window object (simply because it isn't). Mozilla and NS6+ are probably just treating it that way simply for compatibility with IE, but in my opinion it is still wrong.
You might want to try one of the following:
Code:
onclick="updateTextBox(this, this.form.currentSelections)"

or
Code:
onclick="updateTextBox(this, document.forms['selection_form'].elements['currentSelections'])"


it can also be that NS4.x doesn't like the underscores in the name attributes. Strictly they are not allowed (same goes for name="bla[]" - the [ and ] are also basically not allowed); try names without underscores.

Supporting browsers that are older than 5 years (which NS4 is) however is in my opinion a waste of time, unless there are good reasons to do so (like being paid double the money); some things are just not possible if you keep supporting those dinosaurs. Forget about them and hopefully they will go away.

Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesClient Side Things > Browser problem (Netscape)


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway