Greetings,
I am starting a new project and did some googling to no avail. I have no code, yet. I'm still trying to figure what the coding would be or if there are any imports that could added to make this script work.
Problem:
I am trying to make a script that opens a web page and accesses a map. I want it to go through a list of check boxes that are in a separate panel from the map that add layers/filters to the maps to show icons that the filters will query.
The page has CSS styling but is JSP, I understand that this might be better off in the Java or Web Dev subforums. The program I'm using to run the script uses Jython, thus Python is the best method to go about making this script.
If any information (screen shots, source code, etc.) is needed, feel free to ask and I should be able to deliver.
Thanks,
Az
Map Interaction (Check Boxes)
Page 1 of 18 Replies - 494 Views - Last Post: 10 January 2012 - 09:26 AM
Topic Sponsor:
Replies To: Map Interaction (Check Boxes)
#2
Re: Map Interaction (Check Boxes)
Posted 05 January 2012 - 11:27 AM
You mentioned the program you are using to run the scrip uses Jython; what program would that be?
#3
Re: Map Interaction (Check Boxes)
Posted 05 January 2012 - 12:39 PM
The program I am using to run the script is called The Grinder.
Edit: Also, I forgot to mention this in my OP, but when I did do googling, I found something called QWebKit. When I read about it, it seemed like it was only meant to modify and manipulate the map.
Edit: Also, I forgot to mention this in my OP, but when I did do googling, I found something called QWebKit. When I read about it, it seemed like it was only meant to modify and manipulate the map.
This post has been edited by BHAzrael: 05 January 2012 - 12:46 PM
#4
Re: Map Interaction (Check Boxes)
Posted 05 January 2012 - 12:51 PM
So you are running a stress test on a map service? In that case, you will need to pull figure out the form data that is being passed for each check box (hint: check the source), encapsulate them as a tuple of NVPairs, and add the result to the request, as a POST. Look at HTTP/JEE Form based authentication for an example of posting data.
#5
Re: Map Interaction (Check Boxes)
Posted 05 January 2012 - 01:05 PM
Yea, I know it seems odd that I'm running a stress test on a map, but it's used fairly often.
I had a feeling that's what would need to be done, but I guess I'm trying to figure out what I'd take from each list item to throw into those NVPairs. As I look at the source code for the map's page, I can't seem to notice any definitive ways to point out to the machine.
The only way I can tell what code goes to which check box is the obviousness of:
Although, I did notice when fiddling with the filters while looking at the source code, some of the information displayed did change. The main changes were obvious things though (Hover over, selected, checked, etc.)
I had a feeling that's what would need to be done, but I guess I'm trying to figure out what I'd take from each list item to throw into those NVPairs. As I look at the source code for the map's page, I can't seem to notice any definitive ways to point out to the machine.
The only way I can tell what code goes to which check box is the obviousness of:
<span unselectable="on">Filter Name</span>
Although, I did notice when fiddling with the filters while looking at the source code, some of the information displayed did change. The main changes were obvious things though (Hover over, selected, checked, etc.)
#6
Re: Map Interaction (Check Boxes)
Posted 05 January 2012 - 01:34 PM
The Inspector tool in both Firefox and Chrome give you the ability to examine the parameters being passed to the server.
#7
Re: Map Interaction (Check Boxes)
Posted 05 January 2012 - 02:04 PM
I took a look at the Inspect tool, it showed less than Firebug, when I clicked the check box, the code didn't change, while with firebug, it did.
I'm not sure if you were saying a specific add-on, tried looking for "Inspector" on FF's add-on page, but saw nothing.
I'm not sure if you were saying a specific add-on, tried looking for "Inspector" on FF's add-on page, but saw nothing.
#8
Re: Map Interaction (Check Boxes)
Posted 05 January 2012 - 02:10 PM
The Net panel inside Firebug; If these are no queries appearing when things are added and removed from the map, no traffic is being generated!
#9
Re: Map Interaction (Check Boxes)
Posted 10 January 2012 - 09:26 AM
Ok, Sorry about my confusion, haven't gotten use to the WebDev tools fully, but I found it. When I click a layer it does show the queries, and brings in a huge list of all the .png files that are getting loaded into the page.
Would I have to put in a GET for each file? I really hope not.
Would I have to put in a GET for each file? I really hope not.
Page 1 of 1
|
|

New Topic/Question
Reply



MultiQuote




|