[jQuery] Re: Parsing a very large xml file

2009-06-03 Thread Tolis Christomanos
Thanks for the anwers,

I've converted the xml file into a html file and now i use the load()
function of jquery and it works good. About 4 secs parsing for a 2MB file.

On Tue, Jun 2, 2009 at 7:55 PM, Gustavo Salomé wrote:

> I had the same problem a while ago
> Theres a bug about it, you cant use the success function, you must use the
> complete function function in the ajax request
>
> 2009/6/2 Gordon 
>
>
>> Your best bet in that case is trying to talk your client out of it
>> then.  XML is not a very efficient format for data and a file
>> containing effectively the entire database is only ever going to be
>> huge and unwieldy. If you're processing it in a browser it's simply
>> going to be slow, there's no getting around that. If you can find a
>> way of only fetching the data you need at the time you should do
>> that.
>>
>> On Jun 2, 2:12 pm, Tolis Christomanos  wrote:
>> > Michael Lawson wrote:
>> >
>> > > What are you doing with the file exactly?
>> >
>> > > Is there anyway you can break it up to parse smaller chunks?
>> >
>> > > Does the file have to be 2mb in the first place? Won't this make the
>> > > overall experience of your page/application much slower?
>> >
>> > > cheers
>> >
>> > > Michael Lawson
>> > > Development Lead, Global Solutions, ibm.com
>> > > Phone: 1-276-206-8393
>> > > E-mail: mjlaw...@us.ibm.com
>> >
>> > > 'Examine my teachings critically, as a gold assayer would test gold.
>> > > If you find they make sense, conform to your experience, and don't
>> > > harm yourself or others, only then should you accept them.'
>> >
>> > > Inactive hide details for Tolis Christomanos ---06/02/2009 08:43:48
>> > > AM---I have a xml file about 2MB. When i try to parse it myTolis
>> > > Christomanos ---06/02/2009 08:43:48 AM---I have a xml file about 2MB.
>> > > When i try to parse it my browser stops
>> >
>> > > From:
>> > > Tolis Christomanos 
>> >
>> > > To:
>> > > jquery-en@googlegroups.com
>> >
>> > > Date:
>> > > 06/02/2009 08:43 AM
>> >
>> > > Subject:
>> > > [jQuery] Parsing a very large xml file
>> >
>> > >
>> 
>> >
>> > > I have a xml file about 2MB. When i try to parse it my browser stops
>> > > responding... Any good advices for parsing large xml files with
>> jquery?
>> >
>> > Well i need this large files which is going to become much bigger
>> > because my client wants to be able to see his website offline and
>> > distribute it in cds. So i generate all my mysql base to an xml file and
>> > then i parse it with xmlI know its stupid but my client wants to
>> > have only one xml file for tyhe whole site
>>
>
>
>
> --
> Gustavo Salome Silva
>


[jQuery] Re: Parsing a very large xml file

2009-06-02 Thread Tolis Christomanos


Michael Lawson wrote:


What are you doing with the file exactly?

Is there anyway you can break it up to parse smaller chunks?

Does the file have to be 2mb in the first place? Won't this make the 
overall experience of your page/application much slower?


cheers

Michael Lawson
Development Lead, Global Solutions, ibm.com
Phone: 1-276-206-8393
E-mail: mjlaw...@us.ibm.com

'Examine my teachings critically, as a gold assayer would test gold. 
If you find they make sense, conform to your experience, and don't 
harm yourself or others, only then should you accept them.'


Inactive hide details for Tolis Christomanos ---06/02/2009 08:43:48 
AM---I have a xml file about 2MB. When i try to parse it myTolis 
Christomanos ---06/02/2009 08:43:48 AM---I have a xml file about 2MB. 
When i try to parse it my browser stops



From:   
Tolis Christomanos 

To: 
jquery-en@googlegroups.com

Date:   
06/02/2009 08:43 AM

Subject:
[jQuery] Parsing a very large xml file






I have a xml file about 2MB. When i try to parse it my browser stops
responding... Any good advices for parsing large xml files with jquery?


Well i need this large files which is going to become much bigger 
because my client wants to be able to see his website offline and 
distribute it in cds. So i generate all my mysql base to an xml file and 
then i parse it with xmlI know its stupid but my client wants to 
have only one xml file for tyhe whole site


[jQuery] Parsing a very large xml file

2009-06-02 Thread Tolis Christomanos


I have a xml file about 2MB. When i try to parse it my browser stops 
responding... Any good advices for parsing large xml files with jquery?


[jQuery] Re: How refresh a div with a link?

2008-12-19 Thread Tolis Christomanos


kidhermes wrote:

Humm I try this with replaceAll():

$('#refreshflickr').click(function(){
  $('#flickrcarousel').replaceAll('#flickrcarousel');
});

it's working, but it reload twince the page...
Any idea how to fix it?

Regards, Dom

  
You have to use return false; in order for the link not to use its 
default action which is to reload the page.


[jQuery] Re: jquery for slideshows

2008-11-22 Thread Tolis Christomanos
Hello,

Is it possible with this plugin to have .swf or .flv in your slides or it
supports only images?

On Sat, Nov 22, 2008 at 4:50 AM, Sai Krishna <[EMAIL PROTECTED]>wrote:

> I found this through stumble. Thanks to Jquery. It reduces flash cost
> http://www.gruppo4.com/~tobia/cross-slide.shtml
> Sai Krishna
>
>
>
> On Sat, Nov 22, 2008 at 6:57 AM, Milan Andric <[EMAIL PROTECTED]> wrote:
>
>>
>> Hello,
>>
>> I am working on a project where one component is a slideshow
>> application with audio. I'm wondering if I can use jquery/javascript
>> for this.  If anyone has any links to examples or ideas of ways to
>> deal with a series of images and audio file that synchronizes with the
>> images in javascript, it would be greatly appreciated.  A first step
>> would be a jquery library that supports a configurable slideshow with
>> audio.
>>
>> Eventually I would like to build something similar to the slideshare
>> sync tool, which allows you to synchronize audio with images.  This
>> version is done in flash. I'm wondering if javascript could accomplish
>> the same things.
>> http://www.flickr.com/photos/johntynan/3032282040/
>> http://www.slideshare.net/faqs/slidecast#1g
>>
>> Thanks for you help,
>>
>> Milan Andric
>> http://m.andric.us/
>>
>
>


[jQuery] ajaxForm Error: Permission denied to call method Location.toString

2008-11-21 Thread Tolis Christomanos
Hi all,

I have this form

http://www.fares.gr/tests/well_fares_form/

And i am trying to load the server response to a div in the same page but i
get the Permission denied to call method Location.toString

Any ideas?


[jQuery] IE 7 ajaxSubmit problem

2008-11-20 Thread Tolis Christomanos
Hi all,

I am using jQuery Form plugin  to upload my
files. The problem is tha in IE 7 it doesn't allow me to upload any image!!

This is my source

 http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
> http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en">
>   
> 
>  media="screen,projection" type="text/css" />
> 
> 
> 
>
> // prepare the form when the DOM is ready
> $(document).ready(function() {
> var options = {
> target:'#results',   // target element(s) to be updated
> with server response
> //beforeSubmit:  showRequest,  // pre-submit callback
> success:   showResponse,  // post-submit callback
>
> // other available options:
> //url:   url // override for form's 'action' attribute
> //type:  type// 'get' or 'post', override for form's
> 'method' attribute
> dataType:  'json'// 'xml', 'script', or 'json' (expected
> server response type)
> //clearForm: true// clear all form fields after successful
> submit
> //resetForm: true// reset the form after successful submit
>
> // $.ajax options can be used here too, for example:
> //timeout:   3000
> };
>
> // bind to the form's submit event
> $('#fileform').submit(function() {
> // inside event callbacks 'this' is the DOM element so we first
> // wrap it in a jQuery object and then invoke ajaxSubmit
> $(this).ajaxSubmit(options);
>
> // !!! Important !!!
> // always return false to prevent standard browser submit and page
> navigation
> return false;
> });
>
>
> });
>
> // pre-submit callback
> function showRequest(formData, jqForm, options) {
> // formData is an array; here we use $.param to convert it to a string
> to display it
> // but the form plugin does this for you automatically when it submits
> the data
> var queryString = $.param(formData);
>
> // jqForm is a jQuery object encapsulating the form element.  To access
> the
> // DOM element for the form do this:
> // var formElement = jqForm[0];
>
> alert('About to submit: \n\n' + queryString);
>
> // here we could return false to prevent the form from being submitted;
>
> // returning anything other than false will allow the form submit to
> continue
> return true;
> }
>
> // post-submit callback
> function showResponse(data)  {
> // for normal html responses, the first argument to the success
> callback
> // is the XMLHttpRequest object's responseText property
>
> // if the ajaxSubmit method was passed an Options Object with the
> dataType
> // property set to 'xml' then the first argument to the success
> callback
> // is the XMLHttpRequest object's responseXML property
>
> // if the ajaxSubmit method was passed an Options Object with the
> dataType
> // property set to 'json' then the first argument to the success
> callback
> // is the json data object returned by the server
>
>$('#results').html(data.name+" uploaded successfully!");
>
>
>   ?>
>
>$('#save').click(function() {
>
> window.opener.$d('#slideimage').attr("src"," $mosConfig_live_site; ?>/images/stories/"+data.name);
> window.opener.$d('#thumb').attr("value"," $mosConfig_live_site; ?>/images/stories/"+data.name);
> window.close();
>
> return false;
>
> });
>
>  ?>
> $('#save').click(function() {
>
> //window.opener.$d('#slidefile').attr("src"," $mosConfig_live_site; ?>/images/stories/"+responseText);
> window.opener.$d('#uploadedfile').attr("value"," $mosConfig_live_site; ?>/images/stories/"+data.name);
> window.opener.$d('#path_type').attr("value",data.type);
> window.close();
>
> return false;
>
> });
>
> 
> }
>
> 
> 
> #results {
> float:left;
> width:100%;
> }
>
> form {
> float:left;
> width:240px;
> }
> 
>   
> 
>
> 
>
> 
>
>  method="post" action=" ?>/administrator/components/com_highlights/lib/file_upload.php" >
>
> 
>  name="MAX_FILE_SIZE"/>
> 
> 
> 
> 
>
> 
> 


Any ideas?


[jQuery] Re: Make window.open and page communicate

2008-11-20 Thread Tolis Christomanos
Thanks Dirceu

I used the window.opener and it works fine! The ui.jquery seems promising
too...

On Thu, Nov 20, 2008 at 3:26 PM, Dirceu Barquette <
[EMAIL PROTECTED]> wrote:

> Search for opener object. but you can use "dialog" plugin from ui.jquery.
> this is more flexible!
> Dirceu
>
> 2008/11/20 Tolis Christomanos <[EMAIL PROTECTED]>
>
>> I have a link where i open a new window with window.open();
>>
>> Then i change some values in the new window and i want to update the page
>> the new window was invoked with the new values.
>>
>> How can i do this?
>>
>
>


[jQuery] Make window.open and page communicate

2008-11-20 Thread Tolis Christomanos
I have a link where i open a new window with window.open();

Then i change some values in the new window and i want to update the page
the new window was invoked with the new values.

How can i do this?


[jQuery] Re: Window.open and jquery

2008-11-20 Thread Tolis Christomanos
OMG!!!

Yes i am blind

Thank you so much!!!

On Thu, Nov 20, 2008 at 1:48 PM, Rik Lomas <[EMAIL PROTECTED]> wrote:

>
> In your script tags, you have scr="jquery.js" instead of src="jquery.js"
>
> Rik
>
>
> 2008/11/20 Tolis Christomanos <[EMAIL PROTECTED]>:
> > ok sorry
> >
> > The following link from the page file_editor.php which includes jquery
> >
> >>  >> href="components/com_highlights/lib/upload_form.php?uid= $row->id;
> >> ?>" title="" rel="">File Upload
> >
> > opens a window with this code
> >
> >>  >> Strict//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
> >> http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en">
> >>   
> >>  />
> >>  >> media="screen,projection" type="text/css" />
> >> 
> >> 
> >> 
> >>
> >> // prepare the form when the DOM is ready
> >> $(document).ready(function() {
> >> var options = {
> >> target:'#results',   // target element(s) to be updated
> >> with server response
> >> beforeSubmit:  showRequest,  // pre-submit callback
> >> success:   showResponse  // post-submit callback
> >>
> >> // other available options:
> >> //url:   url // override for form's 'action'
> attribute
> >> //type:  type// 'get' or 'post', override for form's
> >> 'method' attribute
> >> //dataType:  null// 'xml', 'script', or 'json' (expected
> >> server response type)
> >> //clearForm: true// clear all form fields after
> successful
> >> submit
> >> //resetForm: true// reset the form after successful
> submit
> >>
> >> // $.ajax options can be used here too, for example:
> >> //timeout:   3000
> >> };
> >>
> >> // bind to the form's submit event
> >> $('#fileform').submit(function() {
> >> // inside event callbacks 'this' is the DOM element so we first
> >> // wrap it in a jQuery object and then invoke ajaxSubmit
> >> $(this).ajaxSubmit(options);
> >>
> >> // !!! Important !!!
> >> // always return false to prevent standard browser submit and
> page
> >> navigation
> >> return false;
> >> });
> >> });
> >>
> >> // pre-submit callback
> >> function showRequest(formData, jqForm, options) {
> >> // formData is an array; here we use $.param to convert it to a
> string
> >> to display it
> >> // but the form plugin does this for you automatically when it
> submits
> >> the data
> >> var queryString = $.param(formData);
> >>
> >> // jqForm is a jQuery object encapsulating the form element.  To
> >> access the
> >> // DOM element for the form do this:
> >> // var formElement = jqForm[0];
> >>
> >> alert('About to submit: \n\n' + queryString);
> >>
> >> // here we could return false to prevent the form from being
> >> submitted;
> >> // returning anything other than false will allow the form submit to
> >> continue
> >> return true;
> >> }
> >>
> >> // post-submit callback
> >> function showResponse(responseText, statusText)  {
> >> // for normal html responses, the first argument to the success
> >> callback
> >> // is the XMLHttpRequest object's responseText property
> >>
> >> // if the ajaxSubmit method was passed an Options Object with the
> >> dataType
> >> // property set to 'xml' then the first argument to the success
> >> callback
> >> // is the XMLHttpRequest object's responseXML property
> >>
> >> // if the ajaxSubmit method was passed an Options Object with the
> >> dataType
> >> // property set to 'json' then the first argument to the success
> >> callback
> >> // is the json data object returned by the server
> >>
> >> alert('status: ' + statusText + '\n\nresponseText: \n' +
> responseText
> >> +
> >> '\n\nThe output div should have already been updated with the
> >> responseText.');
> >> }
> >>
> >> 
> >>   
> >> 
> >>
> >> 
> >>
> >> 
> >>
> >>  >> method="post" action="" >
> >>
> >> 
> >> 
> >> 
> >> 
> >> 
> >>
> >> 
> >> 
> >
> >
> > The error is for the $(document).ready(); which i think means that jquery
> is
> > not loaded but the path to jquery.js is correct...
> >
> >
> >
> > On Thu, Nov 20, 2008 at 1:30 PM, Liam Potter <[EMAIL PROTECTED]>
> > wrote:
> >>
> >> show us code, give us a link.
> >>
> >>
> >> Tolis Christomanos wrote:
> >>>
> >>> Hi all,
> >>>
> >>> I am using window.open to open a new window to display a form.
> >>>
> >>> The form uses jquery for validation but i get the following error
> >>>
> >>> $ is not defined
> >>>
> >>> though i include jquery in the 
> >>>
> >>> Any ideas?
> >>
> >
> >
>
>
>
> --
> Rik Lomas
> http://rikrikrik.com
>


[jQuery] Re: Window.open and jquery

2008-11-20 Thread Tolis Christomanos
ok sorry

The following link from the page file_editor.php which includes jquery

 href="components/com_highlights/lib/upload_form.php?uid=id;
> ?>" title="" rel="">File Upload
>

opens a window with this code

 http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
> http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en">
>   
> 
>  media="screen,projection" type="text/css" />
> 
> 
> 
>
> // prepare the form when the DOM is ready
> $(document).ready(function() {
> var options = {
> target:'#results',   // target element(s) to be updated
> with server response
> beforeSubmit:  showRequest,  // pre-submit callback
> success:   showResponse  // post-submit callback
>
> // other available options:
> //url:   url // override for form's 'action' attribute
> //type:  type// 'get' or 'post', override for form's
> 'method' attribute
> //dataType:  null// 'xml', 'script', or 'json' (expected
> server response type)
> //clearForm: true// clear all form fields after successful
> submit
> //resetForm: true// reset the form after successful submit
>
> // $.ajax options can be used here too, for example:
> //timeout:   3000
> };
>
> // bind to the form's submit event
> $('#fileform').submit(function() {
> // inside event callbacks 'this' is the DOM element so we first
> // wrap it in a jQuery object and then invoke ajaxSubmit
> $(this).ajaxSubmit(options);
>
> // !!! Important !!!
> // always return false to prevent standard browser submit and page
> navigation
> return false;
> });
> });
>
> // pre-submit callback
> function showRequest(formData, jqForm, options) {
> // formData is an array; here we use $.param to convert it to a string
> to display it
> // but the form plugin does this for you automatically when it submits
> the data
> var queryString = $.param(formData);
>
> // jqForm is a jQuery object encapsulating the form element.  To access
> the
> // DOM element for the form do this:
> // var formElement = jqForm[0];
>
> alert('About to submit: \n\n' + queryString);
>
> // here we could return false to prevent the form from being submitted;
>
> // returning anything other than false will allow the form submit to
> continue
> return true;
> }
>
> // post-submit callback
> function showResponse(responseText, statusText)  {
> // for normal html responses, the first argument to the success
> callback
> // is the XMLHttpRequest object's responseText property
>
> // if the ajaxSubmit method was passed an Options Object with the
> dataType
> // property set to 'xml' then the first argument to the success
> callback
> // is the XMLHttpRequest object's responseXML property
>
> // if the ajaxSubmit method was passed an Options Object with the
> dataType
> // property set to 'json' then the first argument to the success
> callback
> // is the json data object returned by the server
>
> alert('status: ' + statusText + '\n\nresponseText: \n' + responseText +
>
> '\n\nThe output div should have already been updated with the
> responseText.');
> }
>
> 
>   
> 
>
> 
>
> 
>
>  method="post" action="" >
>
> 
> 
> 
> 
> 
>
> 
> 
>


The error is for the $(document).ready(); which i think means that jquery is
not loaded but the path to jquery.js is correct...



On Thu, Nov 20, 2008 at 1:30 PM, Liam Potter <[EMAIL PROTECTED]>wrote:

>
> show us code, give us a link.
>
>
>
> Tolis Christomanos wrote:
>
>> Hi all,
>>
>> I am using window.open to open a new window to display a form.
>>
>> The form uses jquery for validation but i get the following error
>>
>> $ is not defined
>>
>> though i include jquery in the 
>>
>> Any ideas?
>>
>
>


[jQuery] Window.open and jquery

2008-11-20 Thread Tolis Christomanos
Hi all,

I am using window.open to open a new window to display a form.

The form uses jquery for validation but i get the following error

$ is not defined

though i include jquery in the 

Any ideas?


[jQuery] Anyone using flash in his cycle slides?

2008-11-16 Thread Tolis Christomanos
Hello group,

I have a problem with the cycle plugin and internet explorer. When i have a
slide (div) with flash inside it it keeps playing even when it is not
visible (display:none);

Any ideas?

Thanks in advance