Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7497463
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T19:06:48+00:00 2026-05-29T19:06:48+00:00

I’m trying to post data with jQuery in an asp.net application to a popup.

  • 0

I’m trying to post data with jQuery in an asp.net application to a popup.

If the popup opens, I’m getting three errors.
The first error is:

 Errror: the value of the property is null or undefined not a function object

(error code [code is in popup site]:http://www.suckmypic.net/26449/e65f2d77.png,
orig. code [code is in popup site]:http://www.suckmypic.net/26450/7dfdf013.png)

then I’m getting two errors of private functions which are included correctly.

Then – if I’m reloading the popup window, everything is working fine.

I open the popup in this way:

$.post('popup.aspx', { X: $("#X1").val(), XX: varX, XXX: varXY, Z: varZ}, function (result) {

  hWndHelp = window.open('', 'help', cStyle);
  hWndHelp.focus();
  hWndHelp.document.open();
  hWndHelp.document.write(result);
  hWndHelp.document.close();
});

(it’s stored in a function that I’m calling on pressing the f1 key which is working fine)

I’m referencing in the mainpage and in the popup window all my functions and the jquery library.

Edit

The code for the cStyle var:

var WIN_STYLE_RESIZE =
    'resizable = yes, ' +
    'status = yes, ' +
    'scrollbars = yes';

var cStyle =
        WIN_STYLE_RESIZE + ', ' +
        'width = ' + w + ', ' +
        'height = ' + h + ', ' +
        'top = ' + y + ', ' +
        'left = ' + x;

(w, h, y, x are calculated numbers, basing on window size)

If I change it simply to 'width=600,height=400', the error still occurs.

If I send my variables via get it also works, but i need to hide the variables in the URL.

Working get method:

var getUrl = "popup.aspx?X="+$('#X1').val()+"&....";
hWndHelp = window.open(getUrl, 'help', cStyle);

Another Edit:
Just tried chrome and firefox – no error there. But I need the code to work with IE.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T19:06:50+00:00Added an answer on May 29, 2026 at 7:06 pm

    First of all thanks for the replies.

    I’ve tried every answer, but I’m still always get the errors in internet explorer.

    I’ve found a workaround, but it does not make me happy because i think generating a new form with input fields is too much for my needs.

    Since it’s the only working option for posting my data into a popup without getting the jQuery error, I’ve decided to use it.

    var form = document.createElement("form");
    form.setAttribute("method", "post");
    form.setAttribute("action", "popup.aspx");
    form.setAttribute("target", "help");
    
    var input = document.createElement("input");
    input.type = "hidden";
    input.name = "X";
    input.value = $("#X").val();
    form.appendChild(input);
    
    var input2 = document.createElement("input");
    input2.type = "hidden";
    input2.name = "XX";
    input2.value = varX;
    form.appendChild(input2);
    
    var input3 = document.createElement("input");
    input3.type = "hidden";
    input3.name = "XXX";
    input3.value = varXY;
    form.appendChild(input3);
    
    var input4 = document.createElement("input");
    input4.type = "hidden";
    input4.name = "Z";
    input4.value = varZ;
    form.appendChild(input4);
    
    document.body.appendChild(form);
    
    hWndHelp = window.open("about:blank", "help", cStyle);
    hWndHelp.focus();
    
    form.submit();
    document.body.removeChild(form);
    

    original source:
    http://taswar.zeytinsoft.com/2010/07/08/javascript-http-post-data-to-new-window-or-pop-up/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to create an if statement in PHP that prevents a single post
I am trying to understand how to use SyndicationItem to display feed which is
Basically, what I'm trying to create is a page of div tags, each has
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I am reading a book about Javascript and jQuery and using one of the
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
We're building an app, our first using Rails 3, and we're having to build
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I want to construct a data frame in an Rcpp function, but when I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.