Accessing one html from another


#1

Can someone delete this thread


#2

What code do you have so far? A click event using JS/jquery should do the trick, i think this should work even with frames as long its the same html document.


#3

yes but frames have source as html that to .svg if u know that format.


#4

please post the code and required files. Given there is <svg> tag in html5 (did you use it?), it shouldn't a problem, we can surely manipulate that with javascript

Such details are important, you should included them without me having to ask for it


#5

Will remember from next time.
I have edited my post and uploaded supporting docs.


#6

you don't expect me to actually code the solution for you, right?

How familiar are you with JS/jquery? You can just add a click event (handler) to the paragraph, looking at the code, there are plenty of ways to select the elements you desire


#7

thanks for help sir :slight_smile:
i have just started with html 2 weeks ago,
haven't done anything in JS/jquery.
still i will try by myself first if still i cant do then i will ask again for help.
it will be helpful if u give me some links from where i should refer these kind of problem.
on google i cant find the proper link that's why posted here.
if you can do in anyone way i will be happy.


#8

this might not be so easy, given there is already a lot of JS code present.

Coding this in jquery would be a lot easier, given you can just use .on() rather then addEventListener()

my advice would be to learn JS, so you can manipulate the JS code which is already being used


#9

A post was split to a new topic: Don't know yet what this topic is about


#10

i am still not able to do it.
somebody please help me.


#11

What is the rush? Learn JavaScript/jquery so you can code a solution


#12

many are say saying if its not in same origin , it cant be done that's why. i made a lot of google still no positives
is it possible or not please clear me


#13

its seem possible:

mixtute of jquery and JS seems to do the trick just fine


#14

now able to access html by getelementbyid but in svg i am not able to get that id i think svg dont have that getelementbyid


#15

It must be, looking at how much JS code is included already.

But then, SVG and frames is not something i work with very often.


#16

by referring this i can link 2 html but with SVG,
cant get that ID as argument in get element by id. if you can look into this i will be happy.


#17

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.