[thelist] Form submit to iframe

soniethomas at gmail.com soniethomas at gmail.com
Tue Oct 16 23:10:51 CDT 2007


Hi all,
 I have a web application in which i open many screens in the same browser. I do this by dynamically creating iframes and hiding and displaying them selectively. What I want to achieve now is this:
 When I submit a form on one page, it should target a new iframe, i am dynamically creating. I tried setting the target through javascript to the name of the new form, the form object etc.. Whatever I do, the submit opens up a new browser window. I am submitting the page through javascript using, theForm.submit(). Any idea why its not working properly?

Thanks.







	
_____________________________ 
I sent this email  using Morange. 
Get push email, news, IM on your mobile phone for free at: http://www.morange.com

----- Original Message -----
From: "thelist-request at lists.evolt.org" <thelist-request at lists.evolt.org>
To: thelist at lists.evolt.org
Sent: Sun, 14 Oct 2007 12:00:04 -0500
ReplyTo: thelist at lists.evolt.org
Subject: thelist Digest, Vol 56, Issue 14



Send thelist mailing list submissions to
	thelist at lists.evolt.org

To subscribe or unsubscribe via the World Wide Web, visit
	http://lists.evolt.org/mailman/listinfo/thelist
or, via email, send a message with subject or body 'help' to
	thelist-request at lists.evolt.org

You can reach the person managing the list at
	thelist-owner at lists.evolt.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of thelist digest..."


Today's Topics:

   1. Re:  from text to quicktime player (Shawn K. Quinn)
   2. Re:  from text to quicktime player (marianna)
   3. Re:  from text to quicktime player (Shawn K. Quinn)
   4. Re:  from text to quicktime player (marianna)
   5. Re:  Form data to office database (Jon Molesa)
   6. Re:  from text to quicktime player (Stephen Rider)


----------------------------------------------------------------------

Message: 1
Date: Sat, 13 Oct 2007 12:32:31 -0500
From: "Shawn K. Quinn" <skquinn at speakeasy.net>
Subject: Re: [thelist] from text to quicktime player
To: "thelist at lists.evolt.org" <thelist at lists.evolt.org>
Message-ID: <1192296751.4973.2.camel at xevious.platypuslabs.org>
Content-Type: text/plain

On Fri, 2007-10-12 at 15:23 -0700, marianna wrote:
> is there a way to launch a quicktime movie from text? and how would
> that
> look like?

The same as any other link, if I understand what you're asking
correctly:

<a href="mymovie.mov"> my movie </a>

-- 
Shawn K. Quinn <skquinn at speakeasy.net>



------------------------------

Message: 2
Date: Sat, 13 Oct 2007 11:09:52 -0700
From: marianna <wemac2 at pacbell.net>
Subject: Re: [thelist] from text to quicktime player
To: "thelist at lists.evolt.org" <thelist at lists.evolt.org>
Message-ID: <C3365800.EAC3%wemac2 at pacbell.net>
Content-Type: text/plain;	charset="US-ASCII"

with your code another window opens and plays the movie in the browser. i
would like a link that opens quicktime player on the viewer's computer.
that's what i am having trouble with.

here is how i make it happen with a poster movie and javascript:

<script language="javascript">
QT_WriteOBJECT_XHTML('postermovie.mov' , 'xx' , 'yy' , '' , 'controller' ,
'false' , 'autoplay' , 'false' , 'kioskmode' , 'true' , 'href' , 'movie.mov'
, 'target' , 'quicktimeplayer' ); </script>

i know nothing about javascript and so don't know how to incorporate text
into that script in place of postermovie.mov

i hope i was able to explain this.

thanks,
marianna




Shawn K. Quinn wrote:

> On Fri, 2007-10-12 at 15:23 -0700, marianna wrote:
>> is there a way to launch a quicktime movie from text? and how would
>> that
>> look like?
> 
> The same as any other link, if I understand what you're asking
> correctly:
> 
> <a href="mymovie.mov"> my movie </a>




------------------------------

Message: 3
Date: Sat, 13 Oct 2007 13:32:01 -0500
From: "Shawn K. Quinn" <skquinn at speakeasy.net>
Subject: Re: [thelist] from text to quicktime player
To: "thelist at lists.evolt.org" <thelist at lists.evolt.org>
Message-ID: <1192300322.4973.7.camel at xevious.platypuslabs.org>
Content-Type: text/plain

On Sat, 2007-10-13 at 11:09 -0700, marianna wrote:
> with your code another window opens and plays the movie in the
> browser. i
> would like a link that opens quicktime player on the viewer's
> computer.
> that's what i am having trouble with.

The links themselves don't do that, that depends entirely on the user's
browser configuration.

Note that if you have something which uses Javascript without a
non-Javascript alternative, users without Javascript (note that
Javascript is not always enabled even if the capability is there) will
not be able to access the Quicktime movie *at all*; there's a reason I
use the phrase "(site held together with) duck tape, Javascipt, and
Flash".

-- 
Shawn K. Quinn <skquinn at speakeasy.net>



------------------------------

Message: 4
Date: Sat, 13 Oct 2007 16:00:32 -0700
From: marianna <wemac2 at pacbell.net>
Subject: Re: [thelist] from text to quicktime player
To: "thelist at lists.evolt.org" <thelist at lists.evolt.org>
Message-ID: <C3369C20.EADD%wemac2 at pacbell.net>
Content-Type: text/plain;	charset="US-ASCII"

actually this is an internal website for view by other computers that are
macs and have quicktime, so no worries about computers and what is
installed.

but if i call the quicktimeplayer through a postermovie in javascript, it
opens the quicktimeplayer. but i just don't know how to do this through
text. perhaps i have to create a text file and call the quicktime player
though this file?

thanks,
marianna 


Shawn K. Quinn wrote:

> On Sat, 2007-10-13 at 11:09 -0700, marianna wrote:
>> with your code another window opens and plays the movie in the
>> browser. i
>> would like a link that opens quicktime player on the viewer's
>> computer.
>> that's what i am having trouble with.
> 
> The links themselves don't do that, that depends entirely on the user's
> browser configuration.
> 
> Note that if you have something which uses Javascript without a
> non-Javascript alternative, users without Javascript (note that
> Javascript is not always enabled even if the capability is there) will
> not be able to access the Quicktime movie *at all*; there's a reason I
> use the phrase "(site held together with) duck tape, Javascipt, and
> Flash".




------------------------------

Message: 5
Date: Sat, 13 Oct 2007 21:45:04 -0400
From: Jon Molesa <rjmolesa at consoltec.net>
Subject: Re: [thelist] Form data to office database
To: "thelist at lists.evolt.org" <thelist at lists.evolt.org>
Message-ID: <20071014014504.GA2495 at jenna.rjmolesa.homelinux.net>
Content-Type: text/plain; charset=us-ascii

This not elegant code by any means, but it did the trick in a pinch for
me a few months back on a job.  HIH.

$i=0;
$header = '';
$data = '';

while($row = mysql_fetch_array($result, MYSQL_ASSOC))
{
	$f=1;  // this was needed because for some reason it was skipping the
		   // first row of data

	foreach($row as $key => $val)
	{
		$cnt = count($row);
		
		if($i==0){
			if($f==$cnt){  // i had to add this test as well.
				$header .= "\"".$key."\"\n";
				$data .= "\"".$val."\"\n";
			}else{
				$header .= "\"".$key."\",";
				$data .= "\"".$val."\",";
			}
		}else{
			if($f==$cnt){  // i never quite figured out why.
				$data .= "\"".$val."\"\n";
			}else{
				$data .= "\"".$val."\",";
			}
		}
		$f++;
	}
	$i++;
}

// this would output our csv data.  To do it in a browser, you'll need
// to send the appropriate headers as well.  Then it'll open
// automatically in Excel.
// you may want to change the output method though
echo $header;
echo $data;


I just remembered why that was needed.  I needed a way to not insert the
commas on the last column of data.

-- 
Jon Molesa
rjmolesa at consoltec.net
http://rjmolesa.com


------------------------------

Message: 6
Date: Sun, 14 Oct 2007 01:22:53 -0500
From: Stephen Rider <evolt_org at striderweb.com>
Subject: Re: [thelist] from text to quicktime player
To: "thelist at lists.evolt.org" <thelist at lists.evolt.org>
Message-ID: <8895F0D0-AA4F-42B8-887D-B40F401ADDEA at striderweb.com>
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed

I would think a little DOM scripting would be in order.  Use  
JavaScript to replace the link (or some other element) with the  
Quicktime movie itself, set to autoplay.

Just a thought.

Stephen


On Oct 13, 2007, at 6:00 PM, marianna wrote:

> actually this is an internal website for view by other computers  
> that are
> macs and have quicktime, so no worries about computers and what is
> installed.
>
> but if i call the quicktimeplayer through a postermovie in  
> javascript, it
> opens the quicktimeplayer. but i just don't know how to do this  
> through
> text. perhaps i have to create a text file and call the quicktime  
> player
> though this file?
>
> thanks,
> marianna
>
>
> Shawn K. Quinn wrote:
>
>> On Sat, 2007-10-13 at 11:09 -0700, marianna wrote:
>>> with your code another window opens and plays the movie in the
>>> browser. i
>>> would like a link that opens quicktime player on the viewer's
>>> computer.
>>> that's what i am having trouble with.
>>
>> The links themselves don't do that, that depends entirely on the  
>> user's
>> browser configuration.
>>
>> Note that if you have something which uses Javascript without a
>> non-Javascript alternative, users without Javascript (note that
>> Javascript is not always enabled even if the capability is there)  
>> will
>> not be able to access the Quicktime movie *at all*; there's a  
>> reason I
>> use the phrase "(site held together with) duck tape, Javascipt, and
>> Flash".
>
>
> -- 
>
> * * Please support the community that supports you.  * *
> http://evolt.org/help_support_evolt/
>
> For unsubscribe and other options, including the Tip Harvester
> and archives of thelist go to: http://lists.evolt.org
> Workers of the Web, evolt !



------------------------------

_______________________________________________
Help: http://lists.evolt.org/mailman/listinfo/thelist

Archives: http://lists.evolt.org

End of thelist Digest, Vol 56, Issue 14
***************************************


More information about the thelist mailing list