473,396 Members | 1,768 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,396 software developers and data experts.

Null or not an object in Internet Explorer

Hi All,

I'm a photographer and have a java based access code for clients to login and see the shoots I have done for them. The page used to function fine until I tried to update the page to a new aesthetic and have had all manner of issues since then.

The idea is someone clicks through to the 'clients login' page where this code is and they see a text box and a button to submit the form. It then brings up a popup window where the url is hidden (just to make things look neater and enforce the need for the code..).

This is the script code:

Expand|Select|Wrap|Line Numbers
  1.  
  2.     <script>
  3. <!--
  4. function makeJumpWindow() 
  5. {
  6. var jumpWindow = null
  7. var a = '/index.html';
  8. var b = 'studios/';
  9. var code = document.myForm.field2.value;
  10.  
  11.    if (!jumpWindow || jumpWindow.closed){
  12.          jumpWindow = window.open((b + code + a), "PhotosWindowm", "scrollbars=1, height = 768, width = 1024, status=no, resizable=yes")
  13.          jumpWindow.moveTo(0, 0)
  14.       } else {
  15.          jumpWindow.focus()
  16.       }
  17. }
  18.  
  19. function closeWindow() {
  20.     if (jumpWindow) {
  21.         jumpWindow.close()}
  22. }
  23. -->
  24. </script>
  25.  
  26.  
And this is the button code, so when it's clicked everything pops into the right place...

Expand|Select|Wrap|Line Numbers
  1.  
  2.  
  3. <div style="left: 380px; top: 244px; width: 161px; position:absolute">
  4. <form name= 'myForm' action = 'javascript:makeJumpWindow'>
  5. <p align="center"><input type= 'text' name= 'field2'>
  6. <a href="javascript:makeJumpWindow()"><img src="studio_access_files/Screen%20shot%202010-09-09%20at%2012.07.21.jpg" alt="" style="border: none; height: 41px; width: 161px; " /></a>
  7.  
  8. </form>
  9. </div>
  10.  
  11.  
To see the thing in action please go to http://web.me.com/mysticfinn/jv/var2.html

The Problem

I'm designing on a mac and this works perfectly well in Safari, Camino and Firefox... even the mac Internet Explorer form '05 shows it fine yet IE on a PC doesn't display the text box.. why not?!

If you click on the button it brings up some error thing at the bottom of the window and if clicked on it says "null or not an object" or some such..

I managed to get it working by removing the 'document' bit of my 'document.myForm.field2.value;' in the script but this means it no longer works in any Mozilla browsers..

I have spent all day on this and my eyeballs are bleeding and I'm crying tears of blood into my keyboard as we speak... can anyone help me?

I've tried to include as much information as I can, if I've left anything out please let me know..

Thanks,

Finn
Sep 10 '10 #1
1 1601
The text field isn't rendering due to broken markup, and since the script references it, there's an error.
Sep 10 '10 #2

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

Similar topics

2
by: Howard Jess | last post by:
CLJ -- I've searched the newsgroup and FAQ for info on insertRow(), but didn't see this reported. It seems that Internet Explorer doesn't respond correctly to either insertRow() or...
10
by: milk-jam | last post by:
I'm trying to write a log which save each time internet explorer is opened or closed and all of the url which where visited? Any help is greatly appreciated.
3
by: ckirchho | last post by:
Halo, I am trying to realize a two column layout basically like this: <html> <head> <style> leftCol { float: left; width: 15em; }
11
by: Wendy | last post by:
Hello, I have a program that does the following: When a user clicks on a row in a VB.NET datagrid, it will open a web page in Internet Explorer (that corresponds to that item in the selected row...
1
by: Apu Nahasapeemapetilon | last post by:
Hello and thank you in advance for your help. Can anyone think of a reason why this code would work properly on one PC, but not another? I've got a System.Windows.Forms.UserControl that...
11
by: GHUM | last post by:
Hello, I created some rather complex Intranet Application, using lots of JavaScript, DOM-Maninpulation and XMLHTTPRequest communication. I developed on FireFox, with the excellent firebug ......
3
by: Matthew Lock | last post by:
Hello, I am automating Internet Explorer in order to do some simple automated testing of a web application. How do I invoke Javascript functions in the web page I load? I can successfully start...
3
by: dtwood456 | last post by:
I keep getting a error message in internet explorer 6. the first part of the messesage differs, but the rest is the same. It happens either when the page is loading or, for no reason at all, after...
2
by: swethak | last post by:
Hi, I am getting the problem the problem with google map in Internet Explorer. This map worked fine in mozilla . When i opened the same map in Internet Explorer i am getting the error...
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...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.