Jump to content

Javascript help. (Coordinates of an Element, IFrames, integration with C++)

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
2 replies to this topic

#1
Asull

Asull

    Newbie

  • Members
  • Pip
  • 2 posts
Hey everyone,

I have some experience in Java, C++, and some lesser known scripting languages but i can't seem to figure this problem out.

To make things simple, i would like to know how to use Javascript (with Jquery preferrably) to get the screen coordinates of radio buttons, drop down box, search fields, Ect from a webpage in an iframe on that same page. I would need to save that information in a variable and must be able to use those variables in my C++ program.

A little more information....

At work, i input information into a webpage all day. I made a Macro with C++ that works with the coordinates i input into the program. It works fine until i move to another computer or something in the webpage moves all the links down a few pixels. I want to still use the same C++ program but instead of coordinates that i input, i want to make a script in Java that will find the elements in the webpage and give the coordinates to my C++ program via variables.

I'm thinking the solution would involve a webpage i run off my desktop that has 2 frames.

Top frame being my Javascript code with controls such as start, stop, ect...

Bottom frame being the Website that i will be using my C++ program to fill in the information.

Any advise on sending variables through Java --> C++ or how to get coordinates with Java on a website in an iframe would be greatly appriciated.

Thanks in advance,
Adam

#2
wim DC

wim DC

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 2,084 posts
So
.offset() – jQuery

And

Javascript to C++
?

#3
Asull

Asull

    Newbie

  • Members
  • Pip
  • 2 posts
Yes, i was asking if anyone knew a way to use jQuery to obtain the screen coordinates of an element in a webpage.

Most importantly, any information on using Javascript variables in C++?

Thanks for the reply.