|
Hi All,
I have loaded php page in html page using IFRME tag.Now i want to track the events(like button clicked) from the php page into the my original html page using javascript. Does anyone know how can I do that? Is there any other suggetion?
Thanks in Advance.
|
|
|
|
|
zakkas2483 wrote: Now i want to track the events(like button clicked) from the php page into the my original html page using javascript. Does anyone know how can I do that? Is there any other suggetion?
Yep, you can. But the tracking code have to be written in the php code only. (i.e) when the button click, you can set some values to the parent html page using parent.document.body.myvalue = 'hi' (something like this).
|
|
|
|
|
it's nice reply.
As you tell its right.But I want to know that if my this IFRAME source page is in different domain than the my original page(html page) then can I access that page's controls through my html page's javascript ?? If yes then how can I do that?
thanks.
Ashish Bhatt,
Indianic,Ahmedabad.
|
|
|
|
|
ashish@indianic wrote: I want to know that if my this IFRAME source page is in different domain than the my original page(html page) then can I access that page's controls through my html page's javascript ??
Yes. But this can be achieved only if you know the button/control name. We can inject our code from the HTML page into other domain's page's button, only when you know the button name/id.
ashish@indianic wrote: If yes then how can I do that?
We can do it like
var iframe = document.getElementById('myIframe');<br />
var button = iframe.contentWindow.document.getElementById('domainbutton');<br />
button.onclick += myfunction;
I have did this method very long before.
|
|
|
|
|
hai all,
I placed treeview control in my web page.. data are retrieved from the database and that is displaing using this tree view control.If i run that page in internet explorer it is comming fine i.e no problem in alignment..But if i run that application in mozilla firefox the alignment problem is comming..Can u please tell me the solution for that..
thanks.
|
|
|
|
|
If the Treeview control is on a div and the text alignment of the DIV is left or right then the content on the tree view will take to the respective direction on IE.
Go to your css and remove text-align
|
|
|
|
|
hi there,
Can anybody help me how to create menus which will show submenus as soon as we place mouse on it the submenu must come out from main menu and mouse out submenu must go back to main menu.
Please note not to use method Hide and Show.
replies regarding this matter is appreciated.
Thank you
Dilip
|
|
|
|
|
Have a look at CCS menus.
If you do a google search for "dynamic CSS Menu" you should get lots of results.
|
|
|
|
|
U can go for JavaScripts and CSS For Animated Menus.
Without flash, only this way is Remain.
Believe Yourself™ :->™
|
|
|
|
|
I have a list of lines that contain non-terminated anchor tags, as in my example. I would like to know where to start in making a Firefox add-in that will extract the href attribute and element text, i.e. the link description, from the list of lines.
Of course my first step is to get something working on the raw data, got through "View Page Source", then later on I can try and integrate it into FF. My first issue is that, if the tags were well formed, I could more easily use a regexp for this, but that could get trickey. I'm thinking of somehow querying the DOM for
Where should I start?
|
|
|
|
|
Brady Kelly wrote: I'm thinking of somehow querying the DOM for
Where should I start?
WAG, the Mozilla Developer documentation?
led mike
|
|
|
|
|
I would prefer to achieve a browser agnostic function to do the work, first, before I delve into getting it installed into FF.
|
|
|
|
|
Brady Kelly wrote: before I delve into getting it installed into FF.
What does installing it into FF have to do with:
Brady Kelly wrote: I'm thinking of somehow querying the DOM
Never mind, I have lost interest now.
led mike
|
|
|
|
|
led mike wrote: What does installing it into FF have to do with:
Brady Kelly wrote:
I'm thinking of somehow querying the DOM
Brady Kelly wrote: I would like to know where to start in making a Firefox add-in
My first goal in this project is to have a small application, probably with a WebBrowser control, that I can paste HTML into and parse as described earlier. Once I can extract the list of links I want, hopefully from the DOM of whatever is rendering the HTML, then only will I proceed to get it working inside of FF.
|
|
|
|
|
Brady Kelly wrote: I have a list of lines that contain non-terminated anchor tags
Have, as in, you're pulling them from a web host somewhere? Or a text file? Or...?
If they're being served as a web page and you need to somehow post-process the DOM to make them valid, then you'll need to deal with the browser's own methods of correcting invalid HTML. If you intend to get your hands on them first (say, via a client-script XMLHttpRequest, or client-side POST body, or something) then it's a bit easier - you just need to find out what constraints are in place (for instance, each anchor is terminated by a linefeed) and design your parser to take that into consideration.
|
|
|
|
|
Well, I get it from a web host, but I can easily save it to text now. I'll have a look at your suggestions for looking at the browsers correcting behaviour a bit later.
Thanks.
|
|
|
|
|
Hi
in visual studio command prompt
C:\Program Files\Microsoft Visual Studio 8\vc>aximp socx.ocx /rcw:mysocx.dll
when i want to create wrapper that time it gives me
reference assembly not found error
i want to create it with rcw option only.
withought using it if i give only .ocx path it creates two dll.
is there any difference between using with and withought rcw.
please tell me how to overcome this.
i tried lot of ways.
Thanks
|
|
|
|
|
Hi, my boss is killing me and he wants a simple database application in which multiple users can fill in their data using a website, I told him it might take me sometime to develop as this will be my first asp.net application ever!! So he asked me if there's another simple way to do it using one of the microsoft office application packages or some wizard in some application and I wonder.. is there??
Please help
Smile: A curve that can set a lot of things straight!
(\ /)
(O.o)
(><)
modified on Tuesday, February 05, 2008 7:38:52 AM
|
|
|
|
|
That depends how much he wants to spend. You might take a look at Cold Fusion or Iron Speed. If he's insisting you do it in house I'd make it utterly minimal to start with, trivial security, a trivial HTML UI witha trivial backend database and then refuse to do anyhting to until you can get a proper spec out of him. At least then he will hopefully get enough of an idea as to what's involved to appreciate how much it ought to cost.
Nothing is exactly what it seems but everything with seems can be unpicked.
|
|
|
|
|
Matthew Faithfull wrote: Cold Fusion or Iron Speed
Out of these two, which one do you prefer?? Generally, which tool is the best for rapid web development??
Thanks mate
Smile: A curve that can set a lot of things straight!
(\ /)
(O.o)
(><)
|
|
|
|
|
I've never used either but I've been on a Cold Fusion course, technically they were a competitor at the time and Code-Frog here on CP who's opinion I respect recommends Iron Speed, I think he's a kind of Iron Speed consultant among other things.
I was impressed with the speed and ease of setup for Cold Fusion when I attended the course but that was just short of 7 years ago and the company has changed hands at least once since then. I have no idea what it's like these days. You'll need to do some research which your boss needs to weigh up in cost benfit risk terms against just setting you straight onto writing it yourself. No such thing as a free lunch and all that
Nothing is exactly what it seems but everything with seems can be unpicked.
|
|
|
|
|
How about the google spreadsheets thing
|
|
|
|
|
Thanks Benjymous, you're the best
Smile: A curve that can set a lot of things straight!
(\ /)
(O.o)
(><)
|
|
|
|
|
VistaDB[^] is a useful database that can be hosted in a medium trust environment (ie, it works in standard hosted asp.net environments), and is keyword compatible with SQL 2005. It's written in .net itself, and only requires that the assemblys are uploaded with the site (or you can ilmerge them into your own site assembly).
You could hook that up to an asp.net application fairly easily if you only want to gather data (ie, record form filling), and are not bothered about user authentication etc...
ChrisB
|
|
|
|
|
Thanks mate, I should try this.
Smile: A curve that can set a lot of things straight!
(\ /)
(O.o)
(><)
|
|
|
|