1,330 Posted Topics

Member Avatar for som_sekhar

Google "IE7 flicker" and you'll find many similar reports. A solution is offered [URL="http://blogs.msdn.com/tonyschr/archive/2006/12/06/ie7-menu-flickering-toggling-glitch.aspx"]here[/URL] but it's something each user must do for themsleves. Search a bit harder and you might find a solution you can apply to your web pages to make them immune from the effect. Hopefully MS is …

Member Avatar for guru12
0
83
Member Avatar for kwesiaryee

Kwesiaryee, It's a long while since I cut any JSP but the principles of userIDs and sessionIDs are pretty universal. I wonder if you might be trying to match up two things that are incompatible one with the other. As normally applied, [LIST][*]"userId" refers to a long term database key …

Member Avatar for Airshow
0
71
Member Avatar for mauimaile1129

Within your chosen methodology, you have two basic choices; server-side-heavy vs client-side-heavy. The server-side-heavy solution involves building valid html string(s) at the server and returning it/them in the xmlHttp.responseText. In the client-side-heavy solution you would return the the component strings (eg. href, image src, text), in the xmlHttp.responseText then use …

Member Avatar for mauimaile1129
0
114
Member Avatar for sunilsinha

Sunilsinha, If I understand corrctly, then you want something that standard javascript/css cannot do. You would need to develop a custom control and serve it as an applet. Again if I understand correctly, then I think your end users wouldn't thank you for your trouble. My visualisation of the concept …

Member Avatar for sysel
0
92
Member Avatar for Qasim Ali

Qasim, I would love to help but find that code completely impenetrable. It's neither HTML not Javascript, so this may not be the right forum. You could try posting what is actually served to the client (view source in the browser), rather than the server-side script. However you would then …

Member Avatar for Airshow
0
364
Member Avatar for jmccullough73

Jeff, Looks OK in IE6 under Win 2000. None of the symptoms you describe. Maybe you've had a chance to improve things since your post (2 days ago). The only thing that seems wrong is the Gallery, FAQ and Links are sqeezed and out of vertical alignment at the right …

Member Avatar for Airshow
0
71
Member Avatar for jcanaway

Jcan, I'm not a json peron but I would guess that json would offer a very compact way to do this. The good news for non-json folks is that standard javascript is also very compact for an indexed array comprising numbers or strings or a mixture of the two. It …

Member Avatar for sysel
0
6K
Member Avatar for nish123

Nish, Assuming row to be defined earlier as per your own code, try this : [CODE=javascript] var cell = row.insertCell(0);//::Change index as appropriate var span = document.createElement('span');//Creates a span element var txt = document.createTextNode('Hello');//Creates a text node saying Hello. span.appendChild(txt);//Sticks the text in the span cell.appendChild(span);//Sticks the span in the …

Member Avatar for nish123
0
147
Member Avatar for hoektoe

Hoektoe, I was about to post, "it's easy, create a prototype in HTML, then clone it" but then I decided to try it out. The concept is easy but the reality a bit harder as you need to renumber all id and name attributes to ensure they are unique. And …

Member Avatar for Airshow
0
145
Member Avatar for Zurompeta

Zurompeta, You are right, the symptoms are very odd. The only thing that would make any sense to me is if some code higher up in sorting.php was doing the sql job and then destroying $_GET before the code you posted. Does the page have one or more includes at …

Member Avatar for Airshow
0
113
Member Avatar for diafol

Hi Ardav, I'm not massively experienced in Prototype but I think I've worked something out. It may not be exactly what you want but it's a start. [CODE=javascript]Event.observe(window, 'load', function(){ Event.observe(document.body, 'click', function(e){ if( Event.element(e).args ){ var args = Event.element(e).args.split('|'); var fn = args.shift(); window[fn](args.join('|')); } }); Event.observe(document.body, 'mouseover', function(e){ …

Member Avatar for Airshow
0
243
Member Avatar for khr2003

khr2003, That code certainly looks like it should work but clearly FF doesn't like adding text that way! Try this: [CODE]function addtxt(input,add) { var obj=document.getElementById(input); obj.innerHTML += add; }[/CODE] If you want a line break then [ICODE]obj.innerHTML += "\n" + add;[/ICODE]. [I](Currently away from home so no testing I'm afraid)[/I] …

Member Avatar for khr2003
0
169
Member Avatar for UzuNarU

If these to libs are well written they will each put a maximum of ONE symbol in the global name space, and each will use its own obscure prefix for any element IDs. But maybe that's a big IF. So as WickedS says, probably a conflict of one with the …

Member Avatar for Airshow
0
152
Member Avatar for CNIDog

CNIDog, CSS is working exactly as designed. [ICODE]#frog,h1,h2,h3,h4,h5,h6 { .... }[/ICODE] means "apply the rules in the {curly braces} to each of the listed selectors". [ICODE]#frog[/ICODE] means "the HTML element with an ID of 'frog' ". [ICODE]h1[/ICODE] means "all HTML elements of type <h1>...</h1>". etc. [ICODE]#[/ICODE] is only one of …

Member Avatar for almostbob
0
109
Member Avatar for websurfer

Surfer, First of all, you can massively simplify your form by purging all the nested tables. [CODE=html]<form action="<?php echo $editFormAction; ?>" id="insertForm" name="insertForm" method="POST"> <table width="375" border="0" align="center" cellpadding="0" cellspacing="0"> <tbody> <tr> <td colspan="3" align="center"><img src="../images/nc_title_logo.gif" width="342" height="54" /></td> </tr><tr height="35" valign="bottom"> <td width="80%"><span class="style5">No Order completed in this call</span></td> …

Member Avatar for websurfer
0
127
Member Avatar for rodmastar

Rodmaster, The simple answer is to use the correct syntax for opening a new browser window from JavaScript, as defined eg. [URL="http://www.w3schools.com/HTMLDOM/met_win_open.asp"]here[/URL]. A more comprehensive solution is to create your own function openWin() as follows: [CODE]<script language="JavaScript" type="text/javascript"> function openWin(url, name, mySpecs){ var url = (!url) ? '' : url; …

Member Avatar for CasTex
0
161
Member Avatar for veledrom

Velo, That's pretty easy because these days we have CSS @media rules. [CODE]<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>Untitled</title> <STYLE type="text/css"> .printOnly { display:none; } @media print { .printOnly { display:block; } } </style> </head> <body> <table> <tr> <td>Table 1</td> </tr> </table> <br /> <table> <tr> <td>Table …

Member Avatar for Airshow
0
116
Member Avatar for CaptainColossal

Cap'n Sir, Something like this maybe: [CODE]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <title>Airshow :: Untitled</title> <style> #myVideos { } #myVideos td { width:100px; height:100px; background-color:#818bf5; } </style> <style title="on_styles"> #myVideos td { background-color:#c743fb; } </style> <script> function sw(state){ var rule_sheet = getStyleSheet('on_styles'); if(state) { rule_sheet.disabled = …

Member Avatar for Airshow
0
136
Member Avatar for Enrico!

Enrico, Try this: [CODE]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <title>Airshow :: Untitled</title> <script> onload = function(){ var row = document.getElementById('row1'); row.parentElement.removeChild(row); } </script> </head> <body> <table border> <tbody> <tr id="row1"> <td>aaaa</td> <td>bbbb</td> </tr> <tr id="row2"> <td>xxxx</td> <td>yyyy</td> </tr> </tbody> </table> </body> </html>[/CODE] [B]Airshow[/B]

Member Avatar for sysel
0
8K
Member Avatar for MJ Pieterse
Member Avatar for Airshow
0
124
Member Avatar for drugoholic

Holic, The line [ICODE]else return true;[/ICODE] will never be executed because it is immediately preceded by [ICODE]location.href = url;[/ICODE], effectively ending the life of the current page. The problem would appear not to be with this function but with the function to which it returns its result. Personally, I would …

Member Avatar for Airshow
0
173
Member Avatar for punithapary

Punithapary, What type of "popup window" is it? A genuine browser window created with window.open() or an absolutely positioned HTML block element (typically div)? To my best knowledge you can't do what you want with a browser window - the user must drag it by its title bar in the …

Member Avatar for creativeweb
0
306
Member Avatar for webCurious

I've been using variants of the code below for years - first written in about 2001 I think. One line in particular looks a bit odd - [ICODE]if(w.blur)w.focus();[/ICODE]. This was necessary for one particular browser vresion (I can't recall which)which wouldn't take focus without the preceding test - strange but …

Member Avatar for essential
0
225
Member Avatar for tanaquil

Tanaquil, I've taken a quick look at the technique and reckon you're bound to run into a problem trying to do what you want. The reason is that the technique uses 'clip' to determine a sub-area of an overlayed image to cause the highlight effect. Because 'clip' can only ever …

Member Avatar for tanaquil
0
174
Member Avatar for doclucas

Doclucas, I'm not a Prototype person, however I'll have a go at answering your question as nobody else has responded. Firstly, I strongly suggest you don't use nested forms. There's no guarantee that all browsers will hande nesting in the same way. [LIST=1][*]Add [ICODE]onsubmit="return ajaxRequest(this);[/ICODE] to the (remaining) form tag. …

Member Avatar for Airshow
0
187
Member Avatar for neonle

Neonle, I expect the server has you logged in under the new account, but some sort of caching is preventing you from seeing the new login status. You could try :[LIST=1][*]Close browser window, open a new one and try again [*]Delete "temporaroy internet files" cookies (will also kill auto logins …

Member Avatar for BzzBee
0
93
Member Avatar for franko75

Franko75, I've not been through yout javascript in detail because from the symptoms you describe, I think the (main?) problem lies in the php not javascript. If the same php script is serving up the form and a response to some user event (submission or whatever), then the php must …

Member Avatar for Airshow
0
93
Member Avatar for crimsondarkn

CrimsonD, You can do this either recursively or iteratively. Here is an iterative solution, which is by far the simpler of the two. [CODE]var propIterator = function(obj, propsStr){ if(!obj) { return null; } if(obj && typeof obj === 'object' && propsStr && typeof propsStr === 'string') { var propsArray = …

Member Avatar for Airshow
0
297
Member Avatar for blindkilla

Blindkilla, Whilst I've not checked every line, your javascript looks ok, so I'm going to make a wild guess here. Do you call ajaxFuntion() from a form's submit button or its onsubmit action? If so, then you need to inhibit the natural submit action of the form, which has (typically …

Member Avatar for Airshow
0
333
Member Avatar for Kligham

For a non-json approach, then you could try this .... I just did and it worked : [CODE][B]Server-side (PHP)[/B] $gemeente = ("aalter","aalbeke","antwerpen","anderlecht"); echo implode(',', $gemeente); exit; [B]Client-side (Javascript)[/B] function AjaxResponseHandler(response){ var myVar = response.split(','); alert(myVar); }[/CODE] Of course, you must choose a delimiter (I used comma) that will never appear …

Member Avatar for Kligham
0
184
Member Avatar for nzcreativeweb

You can do this in HTML: [CODE=HTML]<custom myAttrib="Hi there">Custom Inner Stuff</custom>[/CODE] Browsers [I]should[/I] just ignore the custom tag and its atributes, and hence they should display the "inner stuff" as if the tag wasn't there. Not much use except for colweb's point about FF honouring CSS directive - interesting. I …

Member Avatar for Airshow
0
100
Member Avatar for Sanit

Colm, The conventional way would be to have Male/Female radio buttons in the form and a Submit button. This should look after all user interface aspects. If necessary, you can still attach a function to do other things when the radio buttons are clicked. [B]Airshow[/B]

Member Avatar for Sanit
0
122
Member Avatar for nikk

Nikk, In hideOtherDivs, in the else statement, try changing [ICODE]!="block"[/ICODE] to [ICODE]=="block"[/ICODE]. That should get you restarted. Now you need to work out an HTML structure that shows the menu items and their subitems in an appropriate juxtaposition. This is a question of HTML and CSS, so you can put …

Member Avatar for essential
0
216
Member Avatar for Dex09

Dex09, As Serkan indicates, in your second example the enclosed code would be neither parsed nor executed. Typically, <script> tags with a src are used to include blocks of code developed to provide functionality (or data) to more than one web page. Because the src attrubute is a URL, the …

Member Avatar for Airshow
0
223
Member Avatar for Enrico!

Enrico, As already said, plus it can be proceduralised in a loop as follows: [CODE]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <title>Airshow :: Untitled</title> <script> onload = function(){ for (var i=1; i<=3; i++) { var field = document.getElementById('ip_'+i); if(field) { field.value = document.getElementById('cellText'+i).innerHTML; } } } </script> …

Member Avatar for Enrico!
0
195
Member Avatar for sunilsinha

Sunilsinha, After a quick play, this is about as good as I could get it: [CODE]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <title>Airshow :: Untitled</title> <style type="text/css"> .test { width:400px; height:400px; padding:10px; font-family:arial; border:1px solid #000000; overflow:hidden; } </style> <script> function fontSize(s, id){ var d = (document.getElementById) …

Member Avatar for Airshow
0
164
Member Avatar for Xessa

Xessa, You need to decide on which event the "change validator" should fire. You've found [ICODE]textarea.onchange[/ICODE] (pseudo-code) to be disruptive so I suggest [ICODE]textarea.onblur[/ICODE] as the next one to try. This will enable the button when focus moves from the text area to something else. If you want, you can …

Member Avatar for Airshow
0
109
Member Avatar for servis

Servis, I have made a number of changes here but haven't tried running the code, therefore please treat with caution. Assuming [ICODE]securimage_show.php[/ICODE] and [ICODE]Securimage()[/ICODE] to be compatible (presumably they communicate with each other via $Session and then control access to other pages), then I think my code stands a chance …

Member Avatar for Airshow
0
123
Member Avatar for BigGJonsey

BigGJonsey, I recently investigated iFrame resizing for a client and our eventual conclusion was .... not to use an iFrame. We were fortunate in that we had control of all content, outside and inside the frame, so an alternative solution was readily available. Realise that you may not be so …

Member Avatar for Airshow
0
209
Member Avatar for JimPatrick

Sounds like a great project Jim. Good luck with it and thanks for letting us know. [B]Airshow[/B]

Member Avatar for Airshow
0
54
Member Avatar for toddsmith

Toddsmith, Tables and their cells have a transparent background by default, therefore parent element's background-color shines through. For white tables you must explicitly set table, td, th background-color to #FFFFFF. [QUOTE=toddsmith;881262]Also, the- td:white { background-color:#FFFFFF; } seems to be ignored by both Firefox and IE. (If this is the wrong …

Member Avatar for MidiMagic
0
151
Member Avatar for toddsmith
Member Avatar for aashishn86

Aashishn86, You could try this approach. It works in isolation but on a real page would cause the page to reflow as it resizes. Therefore of limited utility. [CODE]<html> <head> <title>Airshow :: Untitled</title> <style type="text/css"> {} </style> <script> function expand(s, b){ s.style.width = (b) ? '' : '100px'; } </script> …

Member Avatar for Airshow
0
77
Member Avatar for jzimmerman

JZee, Here's a different approach. We show/hide the data fields rather than enabling/disabling; validate the whole form when the user clicks the Register button; provide error alerts and suppresses submission if anything isn't right. Apperarance is enhanced with tables to enforce alignment and little CSS. [CODE]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML …

Member Avatar for Airshow
0
156
Member Avatar for sandilian
Member Avatar for Airshow
0
83
Member Avatar for mjb73

mjb, Both links are broken I'm afraid (404). SSI is a server-side technology, which composes web pages from common chunks (includes) stored on the server, plus any stuff that is unique to each particular page. It does not contribute to your ability to work offline. However if the question is, …

Member Avatar for mjb73
0
249
Member Avatar for veledrom

Veledrom, Here's what to do: [LIST=1] [*]Create a directory on your computer named "rescue". [*]Copy and paste html file below (complete with its javascript) to a new text file and save as "index.html" in "rescue". [*]Go [URL="http://kevin.vanzonneveld.net/techblog/article/javascript_equivalent_for_phps_html_entity_decode/"]here[/URL] and download php.js - click the link "php.packed.js" about one third the way …

Member Avatar for almostbob
0
120
Member Avatar for Bob Arctor

Bob Arctor, Something like this maybe? [CODE]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"--> <html> <head> <title>Airshow :: Untitled</title> <style type="text/css"> {} </style> <script text/javascript> //http://www.daniweb.com/forums/thread194841.html function showText(x, txt) { var number_of_text_divs = 3; for(var i=1; i<=number_of_text_divs; i++){ var container = (document.getElementById) ? document.getElementById("text"+i) : document.all["text"+i]; if(i==x) { container.innerHTML = …

Member Avatar for Bob Arctor
0
516
Member Avatar for bufospro

I wonder if this is what you want. .... The mailto URL is defined [URL="http://www.ietf.org/rfc/rfc2368.txt"]here[/URL]. It's not presented in a particularly friendly format and I suggest you go straight to section 6, Examples. Of the rest, it's probably worth noting that: [LIST][*]within mailto URLs, the characters "?", "=", "&" are …

Member Avatar for Airshow
0
228
Member Avatar for Spycat

Spycat, Itsjareds has just beaten me to it. My advice is just about the same, maybe a bit simpler (no RegExp needed). [CODE]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <title>Airshow :: Untitled</title> <script> function goToVideo(){ location.hash = 'video'; } </script> </head> <body> <a href="" onclick="goToVideo(); return false;">Go …

Member Avatar for Spycat
0
230

The End.