Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
finalText = $('<div/>').text(finalText).html();
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Hamburger  
View profile  
 More options Oct 2 2012, 9:16 am
From: Hamburger <bilidi...@web.de>
Date: Tue, 2 Oct 2012 06:16:39 -0700 (PDT)
Local: Tues, Oct 2 2012 9:16 am
Subject: finalText = $('<div/>').text(finalText).html();

Hello,
I need some help to translate jquery to mo.
What is the $('<div/>') in
finalText = $('<div/>').text(finalText).html();
Does it create a div?

the complete code is here:
https://github.com/freqdec/slabText/blob/master/js/jquery.slabtext.js  
Line: 142

thx in advance


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Arian Stolwijk  
View profile  
 More options Oct 2 2012, 9:22 am
From: Arian Stolwijk <stolwijk.ar...@gmail.com>
Date: Tue, 2 Oct 2012 15:22:27 +0200
Local: Tues, Oct 2 2012 9:22 am
Subject: Re: [Moo] finalText = $('<div/>').text(finalText).html();

Yes, $('<div/>') creates a new div element, same as new Element('div') in
MooTools.

So that code would be like:

finalText = new Element('div', {text: finalText}).get('html');


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Hamburger  
View profile  
 More options Oct 2 2012, 9:45 am
From: Hamburger <bilidi...@web.de>
Date: Tue, 2 Oct 2012 06:45:18 -0700 (PDT)
Local: Tues, Oct 2 2012 9:45 am
Subject: Re: [Moo] finalText = $('<div/>').text(finalText).html();

thx Arian for the fast answer


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »