Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 01-05-2004, 02:43 PM   #1
Registered: May 2003
Location: philadelhpia pa
Posts: 92

Rep: Reputation: 15
Strange html (web server) issue

this is such a strange problem, i hardly know how/what to ask
Thumb Nail Viewer

i have a dirctory, under a Virtual site.
in that directory, are some images, config.js file, with an array of the pictures, and an index.html file, with 2 frames named "win1" and "win2"

win1's src is a javascript, that draws thumbnails on the left pain(win1) , and the large picture, in the right (win2).... win2 has NO src

if i attempt to execute the index.html, A line in the thumnail js file

alert("before with");
with(parent.win2.document) {
alert("after with");
alert ("after open");

FAILS (never prints "After with") ..... (i have an alert, before and after)

MAKEING NO change, other then executing the SAME
index.html, from

www/var/html/test/index.html (called from the MAIN HOME site), works just fine.....

there is something about this "Virtual" page, as opposed to the "Main site"
that causes the with(parent......) to fail.....

any help ????

And thanks.....
Old 01-06-2004, 10:44 AM   #2
Registered: May 2003
Location: philadelhpia pa
Posts: 92

Original Poster
Rep: Reputation: 15
the solution was stranger then the problem:
i put a BLANK_FILE in /var/www/html/blank.html , and set src="" and it worked....

it seems, for some unexplainable (at least to me),
that parent.win2.document, was undefined (did not exist)....
ill never figure out, why it does (more or less), from an index.html, which appears
UNDER /var/www/html, but not a users virtual document root......


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help, Adding New HD to Web Server HTML folder jtyler Linux - General 1 10-27-2005 09:59 AM
Run C++ on the Web (with HTML)!?! Hady Programming 7 08-19-2005 01:49 AM
Transperant Proxy and web server on one machine = issue ... sys7em Linux - Networking 2 06-16-2005 02:29 PM
Web Server / Firewall Issue JohnLocke Linux - Newbie 3 03-10-2005 02:16 PM
Consistent web UI w/o duplicating HTML ugenn Programming 0 08-23-2002 11:47 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:44 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration