•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the JSP section within the Web Development category of DaniWeb, a massive community of 391,936 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,762 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JSP advertiser: Lunarpages JSP Web Hosting
Views: 8211 | Replies: 2
![]() |
•
•
Join Date: Oct 2004
Posts: 1
Reputation:
Rep Power: 0
Solved Threads: 0
Hi,
Can anybody tell me why in the following peace of code the link does
not get hidden when "locationid" is empty? thanks, torsten
<%if IsNull(cursor("locationid")) = false then %><A
href="javascript:MM_openBrWindow('http://www.mapminder.co.uk/getmap/default.asp?page=viewlocation&locationid=<%
=cursor("locationid")
%>&source=82YWNH0INZZDY-zIkhkce2L£wY!Pbgx6&zoom=<%
=cursor("mapbytezoom")
%>','','toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1,resizable=0,width=585,height=585,screenX=0,screenY=0,top=0,left=0');"
onMouseOver="window.status = 'Link To Location Map'; return true;"
onMouseOut="window.status = ''; return true;"><IMG
SRC="../images/pubs/gpg_getmap_button.gif" WIDTH=58 HEIGHT=38 HSPACE=0
VSPACE=0 BORDER=0 ALT="Get Map"></A><% end if%>
Can anybody tell me why in the following peace of code the link does
not get hidden when "locationid" is empty? thanks, torsten
<%if IsNull(cursor("locationid")) = false then %><A
href="javascript:MM_openBrWindow('http://www.mapminder.co.uk/getmap/default.asp?page=viewlocation&locationid=<%
=cursor("locationid")
%>&source=82YWNH0INZZDY-zIkhkce2L£wY!Pbgx6&zoom=<%
=cursor("mapbytezoom")
%>','','toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1,resizable=0,width=585,height=585,screenX=0,screenY=0,top=0,left=0');"
onMouseOver="window.status = 'Link To Location Map'; return true;"
onMouseOut="window.status = ''; return true;"><IMG
SRC="../images/pubs/gpg_getmap_button.gif" WIDTH=58 HEIGHT=38 HSPACE=0
VSPACE=0 BORDER=0 ALT="Get Map"></A><% end if%>
•
•
Join Date: Nov 2004
Location: Netherlands
Posts: 5,646
Reputation:
Rep Power: 18
Solved Threads: 191
<c:if test="${not empty urldata}"><a href="<c:out value='${urldata}'/>"><c:out value="${urldescription}"/></a></c:if>Now isn't that a simple and clean bit of code?
Learn to use JSTL and ditch those scriptlets. They're 7 year old technology and no longer recommend.
In fact on any new project I ban the use of scriptlets, dictate JSTL is used exclusively.
Any JSP containing scriptlets gets thrown back to the programmer for rework.
42 Private messages asking for help will be ignored
In the frozen land of Nador they were forced to eat Steve's iMinstrels, and there was much rejoicing.
In the frozen land of Nador they were forced to eat Steve's iMinstrels, and there was much rejoicing.
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb JSP Marketplace
Similar Threads
- Space at the bottom of a linked Image (HTML and CSS)
- Print 5 records per table row (see script) (Perl)
- C++ CString Class Help! (C++)
- Old School Compiler vs New Compiler (C++)
- hide link music vbulletin !! (Existing Scripts)
Other Threads in the JSP Forum
- Previous Thread: How to Display Seconds in a JSP file
- Next Thread: dateadd function



Linear Mode