Jump to content

quangthang2004

Members
  • Content Count

    22
  • Joined

  • Last visited

Community Reputation

0 Neutral

About quangthang2004

  • Rank
    Newbie
  1. Dear All, I assume that I have three points such as P1(x,y), P2(a,b ) and P3 (c,d). So please help me how to calculate the angle with P1 is vertex of them. I will be grateful if someone consider my requestThanks in advance
  2. Dear All, I am going to do a plugin that can rotate any element with dynamic angle when using this. But I donot know how to do. If someone who experienced this matter, Please help me to do. I will be gratefull If someone consider my request. Thanks in advance,
  3. Dear All, I am wondering how to write JS code for uploading image on Server. The requirement is there are just one input and button, the input's type is text and the button is button. Do anyone know how to write . I mean I would like to know the steps to write. Although it doesnot make sense because I can go on the internet and find any information relating to my topic, but I would just like to know the basic way. I will be grateful if some consider my request Thanks in advance
  4. Dear All, I am new one in javascript, So my knowledge in JS is still ambiguous. I am wondering when will we use "unbind" and "undelegate" method? Although I know "unbind" and "undelegate" in order to remove the event binding on element. Thanks in Advance
  5. Dear All, While I was surfing the internet, I got one snippet code about pre-loading images. Here is the code =====================================jQuery.preloadImages = function () { for (var i = 0; i ").attr(" src ", arguments); } }; // Usage $.preloadImages(" image1.gif ", " / path / to / image2.png ", " some / image3.jpg===================================== If someone understand above code, Please explain to me. I will appreciate your comment
  6. Dear all, I am trying to make a plugin for uploading image , file or soemthing like that. Could anyone give me some snippet code or a simple demo about this . Moreover, I have read some document about event but I am not clear such as buble and capture. As you know, Buble event is considered occurance if the event go from children to parent but Capure one is reserve. So Please help me to know deeper about these. Thanks in advance and I wish all have a good valentine day
  7. Dear All, Thanks for reading my topic. I am stuck with problem that I do not know how to write JS for sharing a link on Facebook by clicking a button containing the url. So If someone who care and know about my problem , Please helps me
  8. Dear all, May I ask one thing about the programming. As you know, when we want to swap value A to B or conversely we need mediate value I suppose called C. the following example wil specify what I want to say=============================================var C = A; A = B; B = C;I suppose what If I use var C for three swapvar C = A; A = B; B = C;=========== C = D; D = E; E = C;=========== C = F; F = G; G = C;Could someone help me to give an explaination. Are there any problem if I program to follow above expression ?Thanks in Advance
  9. Dear All, I know all of you are trying to help me and I really appreciate your comments. But I do not know how to speak or express. So I think I should go step by step with my problem.-------------------------------------------------------------var defaults = { username: { name: 'username', require: 'text', message: 'Please enter username' }, email:{ name: 'email', require: 'email', message: 'Please enter your email' }, phone: { name: 'phone', require: 'number', message: 'Please enter your phone' }, regExp: { username: /\w/, email: /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/, phon: /\b\d{1,2}[\/-]\d{1,2}[\/-]\d{4}\b/ } };------------------------------------------------------as you can see above code. you can see each variable such as username, email and phone having name , require and message. Name is for jquery object for example id, class. Require is for constraint and message is for notifying error. I would like to ask do you know how to print 'var defaults' out such as if I would like to know the content in "name of username" what should i do. I meant as you can see the content in "name of username" is "username". So how can I print this value out instead of using "defaults.username.name". Moreover, If I would like to print out the content of name of username, email, phone what should I do. I am so sorry If my English causes you headache because I am not good at English.Thanks in advance
  10. Dear guy, Thanks for your attention. But Could you tell me the way to do it. I think you could experience before. Please help me. Thanks in advance
  11. Dear All, As you known, I am a freshman in Javascript and I get used to do jquery library in recent time. It is because I am facing a problem about validatetion form. During the working, I am try to script a function to return RegExp object .I meant an value will return true or false based on the RegExp that I wrote before but it did not work. I am , Therefore, here today. I would like to ask you about theory how to do. Please give me some suggestion or some recommendation . I will be grateful If you consider my request.I wish you have a nice weekend Thanks in advance
  12. Dear all, I am stricking into a prolem. The prolem is I can get exact height and width value from Image that I insert instance in the web. Sometime it returns value 0 or achieve precise height and width value. what should I do or create a function to obtain actual height and width value Thanks in advance
  13. Dear All, The above title is just to draw all your attention to my topic. So Please forgive me If I make all you disapointed. Actually , I am fresman in Javascript and I would like to be Professional in its. That's why the today's topic mention about how to become professional in Javascript. Please , therefore, share your experience about learning or scripting such as code organization, plugin or something more . I will be grateful to all if you consider my request.thanks in advance
×
×
  • Create New...