Member Avatar

Hi everyone, I was trying to achieve a functionality for drop down box to remember its selected value if the page reloads. I saw some code on this forum using onload method. Title of the thread is "Javascript generated drop down menu " within the last two weeks. Problem is I dont have access to the head or body section. What I do is I create a string which has the javascript and html script and pass that to the control to be displayed in the browser. There is a globaldhtmlcode property where you can write your own code. I …

Member Avatar
+0 forum 10
Member Avatar

Hi, I've been beating my head against my inability to force Safari to dynamicall y load an external Javascript file, and was wondering if anyone has any advi ce. My current code works fine in Firefox and IE: [FONT=Courier New] var e = document.createElement("script"); e.src = url; e.type="text/javascript"; document.getElementsByTagName("head")[0].appendChild(e); [/FONT] I want the script to load and then execute. Any suggestions?

Member Avatar
+0 forum 1
Member Avatar

I was wondering if someone could point me to some good online tutorials and exercises. I most importantly would like a site with some exercises to help me learn further. I have a book called "JavaScript in 24 hours" and I have to admit, this book is terrible. It teaches you the VERY VERY basics of the language. Any help/comments/suggestions are greatly appreciated.

Member Avatar
+0 forum 1
Member Avatar

want to load some external content into a hidden iframe. The hidden iframe will function as a buffer from which i can load the content into a <div>. The reason i am attempting this approach is because the external pages are located on a different domain at my company and [URL=http://msdn.microsoft.com/workshop/author/om/xframe_scripting_security.asp]JavaScript Security[/URL] will not allow iframe resize scripts to function correctly across the domains. The problem is i am not well versed in javascript. I know this approach is possible. I will not be able to add any code to the pages that will be loaded into the iframe. Help! …

Member Avatar
+0 forum 3
Member Avatar

Does anyone know if it is possible to place a .swf within a dhtml dropdown. For instance, On click drop down and externally load an swf within the dropdown. Any feedback would be great. Thanks

Member Avatar
+0 forum 1
Member Avatar

I am using javascript to display a dropdown menu on an html page. This menu lists 48 states and is used to calculate shipping costs to each state. I have an onChange() event in the <select> tag that sends the selected state to another function to figure up the shipping cost. The page is refreshed with 'location.href=location.href'. When the page is refreshed the shipping amount is displayed in the page. Everything works fine except for one thing. When the page refreshes the State the user selected is not displayed in the dropdown box. It defaults back to the first option …

Member Avatar
+0 forum 7
Member Avatar

Hi , I have a function as : function doCheck(str1,str2) { top.LocalCacheLoadStatus = false; parent.SearchFrame.location.href=str1; g_str_Mode = str2; alert (g_str_Mode); } This has str1 as the name of the jsp file and str2 is the value which i have to pass to the jsp file given in str1.How do i do that ? Thanks & Regards Soni

Member Avatar
+0 forum 2
Member Avatar

hey guys i have a problem :S I'm making a site and now im trying to fix the menu, its a rollover menu and it should drop down...it works perfectly now probs there. but the problem now is that i want the menu in a frame. But then the dropdown is lost, can't see the dropdownmenu anymore. I read in a thread somewhere that you should be able to do this without frames but with <div>....and style sheets. I don't quite get it can some plz help me on this 1 ? (owjah the picture is the website and i …

Member Avatar
+0 forum 3
Member Avatar

Hi All I am hoping someone can help me out since this is driving me nuts. On my ASP.Net page I have DIV areas and one ASP.Net server label control : Code: _DIV area 1_____________________________________________________ Message Center View All Messages| _DIV area2_____________________________________________________ (lblMsgCenter) This is first test message. | | This is 2nd test message. | _______________________________________________________ The scroll bar of the 2nd DIV area appears if the messages increase beyond the height of the DIV area. That is not a problem, and the View All Messages hyperlink shows up in the first DIV area. When the messages are less …

+0 forum 0
Member Avatar

Hi - I'm hoping someone might know of a free or relatively inexpensive solution I can use similar to the "Related Search" box on Yahoo News. It appears to use a combination of Javascript and CSS. Here's an example: [url]http://snipurl.com/fz7l[/url] Click on Sandra O'Connors name to see the box appear. I need full access to the Javascript and CSS for any solution you recommend. Thanks!

Member Avatar
+0 forum 1
Member Avatar

Greetings. I encountered this little problem and am stuck. I don't know what should I google. I am developing a webpage with Coldfusion and I need to use some Javascript also. I have a component, and onclick of that component, I would like to call a Javascript function and pass in some arguments - the arguments are gotten from some Coldfusion variables. I have made the function to run, but at the time of coding, I did not thought of this problem. So here it a little snippet. [code] <!-- html --> <input type="button" value="Click me" onClick="sortTable(0, 'abcdef')"> <script> function …

Member Avatar
+0 forum 2
Member Avatar

I would like to open a web page with several layers on it to a specific layer depending on the link on the previous page. I know I can do this from within the same page but I would like to do this from an external page. Can I and how?

Member Avatar
+0 forum 15
Member Avatar

:( I have a website at: [url]http://www.outingsunlimited.com[/url] This site has quite a few "mouseover" images (37 actually) and I need to preload them before I start. When someone goes to the site, while the images are loading.....the screen is just blank and they think there is a problem.....:( HELP !!

Member Avatar
+0 forum 5
Member Avatar

This is my php page it's have javascript problem so plz tell me what should i do. <?php session_start(); if($permission=="yes"){?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>Gallery</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <script language="JavaScript" type="text/JavaScript"> <!-- function MM_preloadImages() { //v3.0 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++) if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}} } //--> </script> <style type="text/css"> <!-- .heading1 { font-family: Arial, Helvetica, sans-serif; font-size: 12px; color: 5A800C; font-weight: bold; } --> </style> <script language="JavaScript" type="text/JavaScript"> <!-- function MM_reloadPage(init) { //reloads the window if Nav4 resized if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) { document.MM_pgW=innerWidth; …

Member Avatar
+0 forum 2
Member Avatar

I am using setTimeout() to provide a delay between changing images. The images are changed by looping back through a function. clearTimeout() is used to cancel the setTimeout function. The problem is that I would also like the initial image (image1.jpg) to be displayed when I'm finished with the looping. I just cannot get this to happen. The code in RED appears to be ignored. This is the code that would would revert the image back to image1.jpg. The following code gives an idea of what I'm trying to do. I use a DIV for the button. Any help would …

Member Avatar
+0 forum 6
Member Avatar

I have built a site and it looks fine when the screen is full size but cuts off when you make the screen smailler. What can I do to keep it looking the same on different screen sizes?

Member Avatar
+0 forum 6
Member Avatar

this seems to be a very simple problem, but i just can't get it done. how do i set a variable which is to display url response? let's say my request is "http://domain.com/datavalue.htm". the request returns some value ( let's say "30.0" ) when i use it with browser. now, i want to get that value dynamically using script or asp object and put that 30.0 on my webpage. how do i do it?

Member Avatar
+0 forum 6
Member Avatar

I have a JavaScript to detect between Netscape version 6& below and IE, is there anything to detect Firefox? Basically I have two sets of code I want to display. One set for IE and FireFox, another set for old Netscape. Right now using the code below doesn't work because FireFox somehow registers as Netscape version3. IS there something like navigator.appName == "FireFox"? browser = ( ((window.navigator.platform == "Win32") && (navigator.appName == "Netscape") && (parseInt(navigator.appVersion) >= 6 )) || ((window.navigator.platform == "Win32") && (navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4 )) ) Thanks!!!

Member Avatar
+0 forum 1
Member Avatar

[CODE]<script type="text/javascript" language="JavaScript1.2" src="stm31.js"></script> stm_bm(["uueoehr",430,"/new/common/images/","blank.gif",0,"","",0,0,250,0,200,1,0,0,"","",83886089],this); stm_sc(1,["transparent","transparent","","",3,3,0,0,"#fffff7","#000000","up_disabled.gif","up_enabled.gif",-1,-1,0,"down_disabled.gif","down_enabled.gif",-1,-1,0]); stm_bp ...[/CODE]

Member Avatar
+0 forum 4
Member Avatar

thank you for entering this page i would like to explain what i should do in my project and my problem: 1- the project for student in the school . 2- every one has an private account and can use it for many things 3- every account has a table of student that contain username , password and some information , and i use sqlserver as a data base 3-(the problem) make animation bar is to display the student name and when i click to the name you can get information about the sudent as a profile . i know …

+0 forum 0
Member Avatar

Hi there, I really can't see why here: [url]http://www.bswebconsulting.ch/kunde...nn/w_g_main.php[/url] the menu images on the right side show up normally and here: [url]http://195.186.60.100/online/index.php?id=7[/url] they only display after hovering over them. I've studied the source code many times now, but I have to admit that I can't see the error The menus are loaded in both cases like so: [QUOTE]<script type='text/javascript' src='scripts/wg.js'></script> <script type='text/javascript' src='scripts/menu_code.js'></script>[/QUOTE] There is no body onload attribute neither in the 1st nor in the 2nd version. Does anybody have a clue as to where the problem could be? Any pointer would really be appreciated Thanks Nick

Member Avatar
+0 forum 1
Member Avatar

I need to add a layer to a certain position on the page. The problem is that in each different screen resolution the layer appears is s different place. Is there a way to fix that? Thanks

Member Avatar
+0 forum 2
Member Avatar

I'm going to be using Java next year in AP Comp. Sci. and seince my summer assignment has me researching a little bit on it, I thuoght I might get a jump on it this summer. Does anyone know any sites that teach the basics? Like HTMLGOODIES.COM teaches HTML and so on, is there like a JAVAGOODIES.COM :D or something?

Member Avatar
+0 forum 1
Member Avatar

Hi all, My page utilizes a few javascript files for my navigation bar and also a few other palces... My problems is this - I want to call to a page within the site as in the script below, but I wish it to be a separate WINDOW al-together. If I do what I have written now and the person hit;s the close button on the page I call to it closes the whole window - thus leaving my web page.... HELP!!!! here's the script I need altered to have it open up a window on it's own. document.write('</td></tr><tr></form><form><td>'); document.write('<input …

Member Avatar
+0 forum 21
Member Avatar

Hi i was wondering how do i make a TXT play music because i was searching for a song site and ended up at a Music Code site but the thing is that on the URL its like this [url]http://kassierae.myknet.org/chevypr.txt[/url] but it still plays a song in Windows Media Player can someone please tell me how to create my own TXT playing files? I also read that this was something like Tag or something. but if you know please help. Thank You.

Member Avatar
+0 forum 8
Member Avatar

Hello: I'm looking for some assistance with a third-party script I'm using that incorporates onmouseover popups. If the content of the popup is too large to appear within the visible window just below the onmouseover spot, two different behaviours occur in firefox and IE 6: IE 6 will elongate the browser window via scrolling to allow the popup to be viewed - but you must physically scroll the window further down after doing the onmouseover. Firefox will reposition the popup elsewhere in the visible window. I think the repositioning behaviour is the preferred user experience (although I'd like it to …

Member Avatar
+0 forum 2
Member Avatar

I'm trying to create a hover box that appears over an entire table cell when onmouseover. I want to know if there is a way to have it go to another URL with onClick. If so, does it have to be done in the p tag or elsewhere. Here's the snippet from the head: <script language="JavaScript" fptype="dynamicanimation"> <!-- function dynAnimation() {} function clickSwapImg() {} //--> </script> <script language="JavaScript1.2" fptype="dynamicanimation" src="file:///C:/Program%20Files/Microsoft%20Office/Office10/fpclass/animate.js"> </script> And the body code: <p align="center" onmouseover="rollIn(this)" onmouseout="rollOut(this)" dynamicanimation="fpAnimformatRolloverFP1" fprolloverstyle="font-family: Verdana; color: #111111; text-transform: capitalize; border: 1px solid #666666; background-color: #C0C0C0" language="Javascript1.2"> <font color="#C0C0C0" size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong> …

Member Avatar
+0 forum 3
Member Avatar

Hello together... first excuse my not very good english. I wrote an JavaScript application which shows, hides and scrolls several layers included in my homepage. I used only DIV-Tags for my layers and I used intensively CSS for the site's layout. When scrolling my layer(s), I move a content layer by its position below a mask layer. All scripts work fine in the common browsers (FF, NS and IE). The problem is now that Firefox sometimes makes the scrolling very very slow. This applies to Netscape 7.x too. When I say "sometimes", I mean that the problem not appears everytime. …

Member Avatar
+0 forum 5
Member Avatar

Hi, I'm using DMW MX2004 to create a website for my organization. Just recently the cross-browser issue came to me. I tested the page with the newly installed Firefox and it didn't appear the way it's supposed to. Below is the code for centering the <div> on the page. It works just fine with IE, but not with Firefox. I heard Firefox incorporated document.all last year. It shouldn't be the case (or so I thought). Could anyone see why it doesn't work with Firefox? Thanks for any advice! ----------------------- function BW_centerLayers() { if (document.layers || document.all || document.getElementById){ var winWidth, …

Member Avatar
+0 forum 2
Member Avatar

I am trying to center a table and know I need to use <div class=''></div>. Here's my problem: I have a menu that was written in JavaScript and is using <div style=''></div> for placement. I would like to center the table, but am finding it a "hard row to hoe!" Any suggestions? <div style="position: absolute; top: 10px; height: 27px; z-index: 1;" id="mainmenu" > <table border='1'width='80%'> <tr> <td bgcolor='#0099FF' height='6.75'></td> <td bgcolor='#333399' height='6.75'></td> <td bgcolor='#CCCCCC' height='6.75'></td> <td bgcolor='#0099FF' height='6.75'></td> <td bgcolor='#333399' height='6.75'></td> </tr> <tr> <td width='100' style='text-align:center;'><a class="menu" href="javascript:void" onclick="window.location.href='aboutUs.htm';return false;" onmouseover="FP_changeProp(/*id*/'leaf1',0,'style.visibility','hidden','visibility','hide'); FP_changeProp(/*id*/'leaf2',0,'style.visibility','hidden','visibility','hide'); FP_changeProp(/*id*/'leaf3',0,'style.visibility','hidden','visibility','show'); FP_changeProp(/*id*/'leaf4',0,'style.visibility','hidden','visibility','hide'); FP_changeProp(/*id*/'menubg',0,'style.visibility','inherit','visibility','show')"><span class="font">About Us</span></a></td> <td width='100' style='text-align:center;' …

Member Avatar
+0 forum 5

The End.