XML Elves

XML Elves

<community>of XML and SVG Developers</community>


Problem with functions

This is a discussion on Problem with functions within the SVG Questions forums, part of the SVG Forums category; Hello everyone, I open a pop-up window with a function from my svg file.Once the window is opened, i select ...


Go Back   XML Elves > SVG Forums > SVG Questions

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Notices


Click here to register

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-17-2004, 10:04 AM
Seb
Guest
 
Posts: n/a
Default Problem with functions

Hello everyone,

I open a pop-up window with a function from my svg file.Once the window is opened, i select a file name and i would like to call a function from my svg file and put in parameter my selected file. i have tried to call my function with parent.Import('the name of my selected file'); and it is not working. I have tried opener.Import(...), still not working.
Does anyone have an idea?

Thanks in advance.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 03-18-2004, 02:34 AM
Anonymous
Guest
 
Posts: n/a
Default Re: Problem with functions

Quote:
Originally Posted by Seb
I open a pop-up window with a function from my svg file.Once the window is opened, i select a file name and i would like to call a function from my svg file and put in parameter my selected file. i have tried to call my function with parent.Import('the name of my selected file'); and it is not working. I have tried opener.Import(...), still not working.
You have two instances of browser, so you cannot communicate between ...
You can
- make popup window as part of your svg, use getURL, parseXML and appendChild to draw it. Remove all when user close it.
- from popup, link to your main svg with parameters, need server language and reloading of your main svg.

Michel
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 03-18-2004, 06:16 AM
Seb
Guest
 
Posts: n/a
Default Problem with functions

I found out the solution.

In my svg page i put:

parent.Importer=Importer;

Now from my pop-up window i can use the function Importer and put the name of my file in parameter.

s?bastien.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 03-18-2004, 06:18 AM
Seb
Guest
 
Posts: n/a
Default Problem with functions

Forgot something:

in my pop-up window i call the function Importer like this:

opener.Importer(parameter);

s?bastien.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Tags
functions, problem


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT -6. The time now is 02:08 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0

Compatible Inkjet Cartridges...
Here is a wide range of the highest quality compatible inkjet cartridges.

ink cartridges
Ink cartridges for sale online! Don't miss out on some quality bargains… Great prices for top brand names. See for yourself!

HARD DISK DRIVE DATA RECOVERY CHESHIRE
Are you in Cheshire and desperate for recovery of data on a hard disk drive? We have the experience and the expertise to help.

ink cartridges Free UK Delivery on ink cartridges such as Canon, Dell, Epson, hp & Lexmark.

1 2 3 4 5 6 7 8 9 10