473,473 Members | 1,895 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

binding onclick function

omerbutt
638 Contributor
hi i am trying to bond an onclick function of jGrowl but it is not working iit was initially used as the document ready function and i am changing it to use it on click here is the code
Expand|Select|Wrap|Line Numbers
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5. <title>Untitled Document</title>
  6. <link rel="stylesheet" href="jquery.jgrowl.css" type="text/css"/>
  7. <script type="text/javascript" src="jquery-1.2.6.js"></script>
  8. <script type="text/javascript" src="jquery.ui.all.js"></script>
  9. <script type="text/javascript" src="jquery.jgrowl.js"></script>
  10. <script type="application/javascript">
  11. // In case you don't have firebug...
  12.     if (!window.console || !console.firebug) {
  13.         var names = ["log", "debug", "info", "warn", "error", "assert", "dir", "dirxml", "group", "groupEnd", "time", "timeEnd", "count", "trace", "profile", "profileEnd"];
  14.         window.console = {};
  15.         for (var i = 0; i < names.length; ++i) window.console[names[i]] = function() {};
  16.     }
  17.     (function($){
  18.         $("#maker").click(function(){
  19.             $('#test1').jGrowl("Another custom container test.", { 
  20.                 glue: 'before',
  21.                 speed: 2000,
  22.                 easing: 'easeInOutExpo',
  23.                 animateOpen: { 
  24.                     height: "show",
  25.                     width: "show"
  26.                 },
  27.                 animateClose: { 
  28.                     height: "hide",
  29.                     width: "show"
  30.                 }
  31.             });
  32.         });
  33.     })(jQuery);
  34. </script>
  35. </head>
  36.  
  37. <body>
  38.     <a href="javascript:void(0);" onclick="$('#test1').jGrowl('shutdown');">Shutdown jGrowl </a>
  39.     <div id="test1" class="top-left"></div>
  40.     <br/><br/><br/><br/>
  41.     <a href="javascript:void(0);" id="maker">Animate jGrowl</a>
  42. </body>
  43. </html>
  44.  
  45.  
Aug 14 '09 #1
1 3194
omerbutt
638 Contributor
i did it te other way
thanks every 1
Aug 14 '09 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Jonathan | last post by:
I'm puzzled by Python's behavior when binding local variables which are introduced within exec() or execfile() statements. First, consider this simple Python program: # main.py def f() : x = 1...
8
by: Shock | last post by:
Hello everyone, I am having a problem with the program below. I have isolated the problem to the onclick event that is located throughout arrQuestions. The onclick event refers to a function...
1
by: noone | last post by:
I like to write my code with optionstrict set to on, except for the late binding errors I get when there is a reason to change some value in a control on a postback, like: Label4.Text =...
0
by: Rea Peleg | last post by:
Hey everybody Im trying to use the 'Assemblie binding log viewer' to debug a simple ..NET web application. This application includes one html page which is trying to bind to an assembly (myDLL)...
4
by: chrisk | last post by:
Trying to due current recordset (DSO) binding using an XML Data Island. The data displays correctly when the page loads. I am embedding the datasrc and datafld attributes within a TemplateColumn...
2
by: Paul K | last post by:
I'm having a problem getting the data binding to work with the repeater control. Here's the code for the code-behind class private void Page_Load(object sender, System.EventArgs e if...
2
by: ad | last post by:
I write a javascript function, it require a string parameter: <asp:TextBox ID="TextBox1" runat="server" onclick="MyJavascript('Tiger');"></asp:TextBox> I want bind a variable to the parameter,...
5
by: Daz | last post by:
Hi everyone. Another simple question which should hopefully warrent a simple answer. I would like a function to be run whenever a variable is updated. I have tried binding the onchange event...
2
by: Eric | last post by:
Simple problem - binding Visible property of label to Checked property of radiobutton on the same form. How do I do that in VS2005?? Visible="<%# radiob.Checked %>" - DOESN'T WORK It was so...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.