Oracle Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesOracle Development

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 Dev Shed Forums Sponsor:
  #1  
Old October 19th, 2004, 09:51 PM
sundarr123123 sundarr123123 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2004
Posts: 8 sundarr123123 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question what's wrong with this code...

iam creating sql*plus script to generate html report... everything works fine.. the code has problem only when i try to create a tooltip for the href.

set feedback off
set verify off
SET MARKUP HTML ON SPOOL ON PREFORMAT OFF ENTMAP ON -
HEAD "<TITLE>Department Report</TITLE> -
<STYLE type='text/css'> -
<!-- BODY {background: #FFFFC6} --> -
</STYLE>" -
BODY "TEXT='#FF00Ff'" -
TABLE "WIDTH='90%' BORDER='5'"
COLUMN firstname HEADING 'FIRST_NAME' ENTMAP OFF
COLUMN lastname HEADING 'LAST_NAME'
spool c:\output\my_first.html
SELECT '<A HREF="..\popupbasic.html" onmouseover="return escape('Some text')">'||FIRSTNAME||'</A>' FIRSTNAME, lastname from suntemp;
spool off

pls help me!!

sundar

Reply With Quote
  #2  
Old November 19th, 2004, 04:35 PM
beunique beunique is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Posts: 50 beunique User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 4
SELECT '<A HREF="..\popupbasic.html" onmouseover="return escape('Some text')">'||FIRSTNAME||'</A>'

This is possibily where your problem lies......

you have correctly concatonated FIRSTNAME into the text string, but failed to do the same for 'Some text' (and possibiliy any other quote not show here.

replace all quotes that appear inside the text quotes with two quotes...(make sense?)

e.g. SELECT 'select ''hello mum'' from dual;' FROM dual;
i.e. escape(''Some text'')">'||FIRSTNAME||'</A>

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesOracle Development > what's wrong with this code...


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 2 hosted by Hostway
Stay green...Green IT