Python Forum
POST Reply to Ajax/jQuery (mostly an HTML question)
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
POST Reply to Ajax/jQuery (mostly an HTML question)
#1
I am trying to write a script that replies to a web page but it appears the reply is via a Ajax/jQuery call. However, I am not sure as I can't find where that call takes place. There is a 'continue' button on the page that triggers the response but I don't see how it works. Here is the input tag:

<input class="th_s" data-i18n="[value]report.ContinueButtonResource1" id="MainContinueButton" type="button" value="Continue"/>

I've not used internationalization so I don't know if that can be doing something. In any case can someone help figure this out? TIA.
Reply
#2
Where's the JavaScript code that handles the click event on the button? You'll need to at least look at that.
Reply
#3
That is the crux of my problem. There is no 'onclick' attribute on that button.
Reply
#4
A button do not need onclick to do something can call id ,type, value and do something in JavaScript based on that.
To see what going on is normal to use Chrome/fireFox DevTools.
If can post url we can take a look.
Reply
#5
As above, you don't need an onclick attribute. There should be some JavaScript code that sets up the event handling for the click event on that button (for example, a call to jQuery's click function).
Reply
#6
Yes, I used Firefox's developer tools to trace what it happening. I found the javascriptcode that is running and opened a new threadon how to deal with it.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Retrieve data from ajax pthon3 0 1,161 May-29-2022, 10:32 PM
Last Post: pthon3
  Post Python to HTML/CSS Extra 3 1,840 Feb-17-2022, 06:07 PM
Last Post: snippsat
  Replying to a Javascript/jQuery gw1500se 16 4,807 Nov-22-2021, 02:47 AM
Last Post: gw1500se
  Post HTML Form Data to API Endpoints Dexty 0 1,382 Nov-11-2021, 10:51 PM
Last Post: Dexty
  HTML multi select HTML listbox with Flask/Python rfeyer 0 4,533 Mar-14-2021, 12:23 PM
Last Post: rfeyer
  Scraping a dynamic data-table in python through AJAX request filozofo 1 3,823 Aug-14-2020, 10:13 AM
Last Post: kashcode
  Flask SelectField using Ajax noah_f 0 2,495 Mar-23-2020, 04:03 PM
Last Post: noah_f
  Python3 + BeautifulSoup4 + lxml (HTML -> CSV) - How to loop to next HTML/new CSV Row BrandonKastning 0 2,329 Mar-22-2020, 06:10 AM
Last Post: BrandonKastning
  How to POST html data to be handled by a route endpoint nikos 1 2,347 Mar-07-2020, 03:14 PM
Last Post: nikos
  requests post/get to HTML form mrdominikku 1 2,300 Nov-03-2019, 07:12 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020