Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

IFRAME Apostrophe Problem

Status
Not open for further replies.

TrekFan

Programmer
Apr 23, 2003
25
CR
Hi there,

Got the following issue on an html/asp page, using as browser internet explorer 6.x (don't have to worry about netscape) : when displaying on an iframe a file that has an Apostrophe it doesn's show the file !!!


The elements I use are
a)Iframe

<iframe name="Preview" SRC="" height="100%" width="950" frameborder="0">
</iframe>

b)User selects a file ...

<INPUT id="pFilePath" TYPE="file" NAME="myFile">

c) And it is assigned to an iframe (this is done in javascript) That is,

document.all.Preview.src= pFilePath.value;



I have already tried to escape the Apostrophe , and have had no luck ... any suggestions ???


Thanks for your help



 
apostrophies are string qualifyers, and if there's an apostrophe in it you may have to double them up to make them acceptable like in sql

[thumbsup2]DreX
aKa - Robert
 
try this:
alert(pFilePath.value)
document.all.Preview.src= pFilePath.value

does the alert have the apostrophe???

Known is handfull, Unknown is worldfull
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top