473,378 Members | 1,412 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

How do I add an id to getdocumentbyid

229 100+
Hi, I have this code that throws up an error. It works fine but with the error.


Expand|Select|Wrap|Line Numbers
  1.     parent.document.getElementById('imagepath<%=request.QueryString("n") %>').value = '/portfolio/paintings/<%=request.QueryString("p") %>/<%=file.extractfilename %>';
The error is


Expand|Select|Wrap|Line Numbers
  1. Line: 24
  2. Character: 5
  3. Code: 0
  4. Error Message: 'parent.document.getElementById(...)' is null or not an object
  5. URL: http://www.site.com/portfolio/resize.asp?PID=10688FEE1065BF6B&n=1&p=1729
I know from reading its a common error but as the code I have doesnt have an id in it I was wondering if it needed it and if so how to write it in there.
Thanks for any help.
Richard
Feb 13 '11 #1
1 2505
Dormilich
8,658 Expert Mod 8TB
well the method is not called getElementById() for no reason …
Feb 13 '11 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Shawn B. | last post by:
Greetings, We have a application that was recently migrated from ASP 1.x ==> ASP 2.0 (I'm sick of saying .NET after everything so just know that I'm talking about .NET). We have <INPUT />...
8
by: kirkox | last post by:
Hi guys, this is my first post here and I am a newbie, of course. My question is simple...I'd like to override toString() function such that it can works on Object. I have something like that...
49
$
by: google | last post by:
what dose a $ do in javascript, i have been given a bit of code and there are $'s all over the place, can someone explain their uses
4
by: Claudio Calboni | last post by:
Hello folks, I'm having some performance issues with the client-side part of my application. Basically, it renders a huge HTML table (about 20'000 cells in my testing scenario), without content....
1
by: wild_bunch | last post by:
hi you guys I have a page A (must be client side only) which has an Iframe in which I open page B from different domain how can I send a message from B to A(for instance to resize the above...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.