Re: Regarding match function in javascript

Wednesday, November 28, 2012

0 comments

On Wed, Nov 28, 2012 at 10:46 AM, Israel <israel.schulman@gmail.com> wrote:
If you're trying to compare two strings exactly, why not use (a == b) ??

Or, get even more strict with it by using (a === b). That will then give you true only when it is an absolute true 'match'. 

--
 
 

Re: Regarding match function in javascript

0 comments
You can use regular express to do this. Like below:

"S1-4335".match(/^S1-433$/)

It will not match.


Prakash Ranganthan於 2012年11月28日星期三UTC+8下午2時38分10秒寫道:
Hi friends I use to match two string whether it matches exactly but sometimes it didn't like

var a = "S1-4335";
var b=  "S1-433";
var result = a.match(b);

actually it matches but it should not match since the both are not exactly same. Please guide me how to proceed with this. Thanks in advance.

--
 
 

Re: Regarding match function in javascript

0 comments
http://www.w3schools.com/jsref/jsref_match.asp

The match method is used to determine whether a string consists of, in this case, the given string.

Since "S1-433" is found in the string "S1-4335" it will match. 

If you're trying to compare two strings exactly, why not use (a == b) ??

On Wednesday, November 28, 2012 1:38:10 AM UTC-5, Prakash Ranganthan wrote:
Hi friends I use to match two string whether it matches exactly but sometimes it didn't like

var a = "S1-4335";
var b=  "S1-433";
var result = a.match(b);

actually it matches but it should not match since the both are not exactly same. Please guide me how to proceed with this. Thanks in advance.

--
 
 

Regarding match function in javascript

Tuesday, November 27, 2012

0 comments
Hi friends I use to match two string whether it matches exactly but sometimes it didn't like

var a = "S1-4335";
var b=  "S1-433";
var result = a.match(b);

actually it matches but it should not match since the both are not exactly same. Please guide me how to proceed with this. Thanks in advance.

--
 
 

MASTER PSYCHIC READER~ ACCURATE & AMUSING

Thursday, November 8, 2012

0 comments
Your first 3 minutes are FREE talking live with me.

Please visit my website at: http://www.keen.com/Ask+Fran

Or, call me right now at: 1-800-275-5336 x0160

--
You received this message because you are subscribed to the Google Groups "Website Design Nz" group.
To post to this group, send email to website-design-nz@googlegroups.com.
To unsubscribe from this group, send email to website-design-nz+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/website-design-nz?hl=en.

Re: Performing Double Click and Drag & Drop using Javascript

Wednesday, November 7, 2012

0 comments
Below is a complete cross-browser compliant page that demonstrates the proper use of setTimeout method.
It simulates the double click functionality via an onclick event attached to a BUTTON
element. Click once on the button and the
psuedoOnClick()function is executed.
Click twice within a 200 millisecond window and psuedoOnDoubleClick() function is executed.

===== BEGIN HTML PAGE
<html>
<head>
<title>setTimeout & Double Click Demo</title>
<script>
// This page implements psuedo double click event via an element's onclick event.

var DBLTIME = 200; // Number of millisecs to wait after first onclick before firing
                   // psuedoOnClick()
                   // If second click happens before this time,
                   // psuedoOnDoubleClick() is called.
var Undef;

function Gid(id) {
    return document.getElementById(id);
}

function Put(id,s) {
    Gid(id).innerHTML = s;
}

var ClickState;    // State variable used to count clicks.

function psuedoOnClick() {
    Put("SH", "You single clicked.");
}

function psuedoOnDoubleClick() {
    Put("SH", "You double clicked.");
}

// This function is called DBLTIME millisconds after
// OnClick() is executed.

function OnTimer() {
    if (ClickState == 1)
        psuedoOnClick();
    ClickState = Undef;
}

function OnClick() {
    if (ClickState == Undef) {
        // The following line will call the OnTimer() function
        // after DBLTIME milliseconds expire.
        window.setTimeout("OnTimer()", DBLTIME);
        ClickState = 1;
        return;
    }
    if (ClickState == 1)
        psuedoOnDoubleClick();
    ClickState = 2;   
}

</script>
</head>
<body>
<button onclick='OnClick()'>Click Me</button>
<div id='SH'></div>
</body>
</html>
====== END HTML PAGE

On Sunday, November 4, 2012 11:40:30 PM UTC-5, Nathan Mynarcik wrote:
This should get ya started: http://www.w3schools.com/jsref/met_win_settimeout.asp



On Sun, Nov 4, 2012 at 9:31 PM, SACHIN V <mr.vs...@gmail.com> wrote:
Hi Nathan,

I don't know how to use it.. Can you please be more elaborate?



--
 
 

Re: Performing Double Click and Drag & Drop using Javascript

Sunday, November 4, 2012

0 comments
This should get ya started: http://www.w3schools.com/jsref/met_win_settimeout.asp



On Sun, Nov 4, 2012 at 9:31 PM, SACHIN V <mr.vsachin@gmail.com> wrote:
Hi Nathan,

I don't know how to use it.. Can you please be more elaborate?



--
 
 

Re: Performing Double Click and Drag & Drop using Javascript

0 comments
Hi Nathan,

I don't know how to use it.. Can you please be more elaborate?


--
 
 

Re: Performing Double Click and Drag & Drop using Javascript

Friday, November 2, 2012

0 comments
Have you tried setting a setTimeout() that when the user interacts with the element, you call element.trigger('click') twice?




On Sat, Nov 3, 2012 at 12:58 AM, SACHIN V <mr.vsachin@gmail.com> wrote:


   Hi Nathan & Cyberoot,

          I have a webpage where If I double click on an element it performs some action, but onDbClick() is not directly implemented on it. I'm trying to automate that part, where I can perform the double click using JavaScript so that corresponding action is triggered as it would happen if a user double clicks on it.

It would be great if you can help me on this?

I tried using initEvents(), but it is giving me the desired results.

Regards,
V Sachin





On Friday, November 2, 2012 9:46:37 AM UTC+5:30, cyberoot wrote:
Like this??
cyberoot.blogspot.com/p/cyber-drag.html
Source Code
<html lang="en">
<head>
 <title>Drag Cyberoot Test</title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js" type="text/javascript"></script>
<script src="http://code.jquery.com/ui/1.8.23/jquery-ui.min.js" type="text/javascript"></script>
<script src="http://jquery-ui.googlecode.com/svn/tags/latest/external/jquery.bgiframe-2.1.2.js" type="text/javascript"></script>
<script src="http://jquery-ui.googlecode.com/svn/tags/latest/ui/minified/i18n/jquery-ui-i18n.min.js" type="text/javascript"></script>
<style>
 #cyberdrag { border:1px solid green;width: 170px; height: 100px;padding:10px; border-radius:10px;}
 </style>
 <script>
 $(function() {
  $( "#cyberdrag" ).draggable();
 });
 </script>
</head>
<body bgcolor="black">
<div id="cyberdrag">
<span style="color: orange;">
 ကၽြန္ေတာ္ကိုဆြဲပါ <span style="color: red;">^_^</span><br />
 cyberoot.blogspot.com
</span>
</div>
</body>
</html>

On Fri, Nov 2, 2012 at 7:26 AM, Nathan Mynarcik <nat...@mynarcik.com> wrote:
So you want to trigger a double click without the user doing anything? Or demonstrate a double click to the user (i.e. custom cursor that looks like it is clicking down twice)?

I'm kinda confused on what exactly you are trying to achieve.





On Sat, Oct 27, 2012 at 9:50 AM, SACHIN V <mr.vs...@gmail.com> wrote:

Hi All,

I want to simulate performing double click and Drag & Drop using JavaScript.I don't want to call ondbClick(), as it is usually called when a user performs a double click. Here I want to perform the double click itself.
Can anyone tell me how can I achieve this?


Regards,
Sachin

--
 
 

--
 
 


--
 
 

Re: Performing Double Click and Drag & Drop using Javascript

Thursday, November 1, 2012

0 comments
Like this??
cyberoot.blogspot.com/p/cyber-drag.html
Source Code
<html lang="en">
<head>
 <title>Drag Cyberoot Test</title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js" type="text/javascript"></script>
<script src="http://code.jquery.com/ui/1.8.23/jquery-ui.min.js" type="text/javascript"></script>
<script src="http://jquery-ui.googlecode.com/svn/tags/latest/external/jquery.bgiframe-2.1.2.js" type="text/javascript"></script>
<script src="http://jquery-ui.googlecode.com/svn/tags/latest/ui/minified/i18n/jquery-ui-i18n.min.js" type="text/javascript"></script>
<style>
 #cyberdrag { border:1px solid green;width: 170px; height: 100px;padding:10px; border-radius:10px;}
 </style>
 <script>
 $(function() {
  $( "#cyberdrag" ).draggable();
 });
 </script>
</head>
<body bgcolor="black">
<div id="cyberdrag">
<span style="color: orange;">
 ကၽြန္ေတာ္ကိုဆြဲပါ <span style="color: red;">^_^</span><br />
 cyberoot.blogspot.com
</span>
</div>
</body>
</html>

On Fri, Nov 2, 2012 at 7:26 AM, Nathan Mynarcik <nathan@mynarcik.com> wrote:
So you want to trigger a double click without the user doing anything? Or demonstrate a double click to the user (i.e. custom cursor that looks like it is clicking down twice)?

I'm kinda confused on what exactly you are trying to achieve.





On Sat, Oct 27, 2012 at 9:50 AM, SACHIN V <mr.vsachin@gmail.com> wrote:

Hi All,

I want to simulate performing double click and Drag & Drop using JavaScript.I don't want to call ondbClick(), as it is usually called when a user performs a double click. Here I want to perform the double click itself.
Can anyone tell me how can I achieve this?


Regards,
Sachin

--
 
 

--
 
 

--
 
 

Re: Performing Double Click and Drag & Drop using Javascript

0 comments
So you want to trigger a double click without the user doing anything? Or demonstrate a double click to the user (i.e. custom cursor that looks like it is clicking down twice)?

I'm kinda confused on what exactly you are trying to achieve.




On Sat, Oct 27, 2012 at 9:50 AM, SACHIN V <mr.vsachin@gmail.com> wrote:

Hi All,

I want to simulate performing double click and Drag & Drop using JavaScript.I don't want to call ondbClick(), as it is usually called when a user performs a double click. Here I want to perform the double click itself.
Can anyone tell me how can I achieve this?


Regards,
Sachin

--
 
 

--
 
 

MASTER PSYCHIC READER~ ACCURATE & AMUSING

0 comments
Your first 3 minutes are FREE talking live with me.

Please visit my website at: http://www.keen.com/Ask+Fran

Or, call me right now at: 1-800-275-5336 x0160

--
You received this message because you are subscribed to the Google Groups "Website Design Nz" group.
To post to this group, send email to website-design-nz@googlegroups.com.
To unsubscribe from this group, send email to website-design-nz+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/website-design-nz?hl=en.

Copyright © 2010 Web Design | Free Blogger Templates by Splashy Templates | Layout by Atomic Website Templates

Vida de bombeiro Recipes Informatica Humor Jokes Mensagens Curiosity Saude Video Games Animals Diario das Mensagens Eletronica Rei Jesus News Noticias da TV Artesanato Esportes Noticias Atuais Games Pets Career Religion Recreation Business Education Autos Academics Style Television Programming Motosport Humor News The Games Home Downs World News Internet Design Entertaimment Celebrities 1001 Games Doctor Pets Net Downs World Enter Jesus Mensagensr Android Rub Letras Dialogue cosmetics Genexus lasofia thebushrajr wingshock tripedes gorduravegetal dainfamia dejavu-transpersonal jsbenfica republicadasbadanas ruiherbon iranianforaryans eaystcheyl fotosdanadir Só Humor Curiosity Gifs Medical Female American Health Madeira Designer PPS Divertidas Estate Travel Estate Writing Computer Matilde Ocultos Matilde futebolcomnoticias girassol lettheworldturn topdigitalnet Bem amado enjohnny produceideas foodasticos cronicasdoimaginario downloadsdegraca compactandoletras newcuriosidades blogdoarmario arrozinhoii