Quoted onclick function? How to correctly markup it

Posted Jan 01, 1970 12:00 AM

I'm working on this sharing window but i don't know how to correctly write it!

I want to do something like this whith: "link","title",200,200

var link = '"link","title",200,200'
<div onclick="popup("link","title",200,200)"

For more info see http://jsfiddle.net/Z9AUH/1/

Real demo http://contat.eu/facebook/vtour/

Similar Topic Questions

Why declare function inside another function makes it globally accessible in php, and how to properly manage it?

This question might have been raised a couple times, but I haven't found a satisfying answer so far, let's see this code: class SomeClass { public static function init() { ...

Posted Dec 13, 2013 7:32 AM

I want to use JavaScript value as argument of Controller function, how can I figure it out?

This is a controller function: 'public static void func(int id){ //some code ...

Posted Jan 09, 2014 3:22 AM

How to correctly create a new instance of class A when you gather information about it through events?

I have a: class A{ int val1, val2, val3} In the other class I have static void eventA(int val1){ //invoked somewhere EventManager eventManager1 = new EventManager(); eventManager1.ServiceResolved += new Events_ServiceResolvedEventHandler(eventB); } static void eventB(int val2){ EventManager eventManager1 = new EventManager(); ...

Posted Jan 13, 2014 8:23 AM

Super() function how to make my program work without it

Figured it out guess all I had to do was create an instance like this Code : ...

Posted Mar 03, 2014 2:39 AM

How to correctly us .replace function?

Trying to use a .replace function to take out the breaks (<br> and </br>) though having trouble with the code I have been given. Here is what I am working with. HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url); HttpWebResponse response = (HttpWebResponse)request.GetResponse(); StreamReader sr = new StreamReader(response.GetResponseStream()); var...

Posted Apr 23, 2014 4:33 AM

How to correctly pass a function to another function in Python

I am trying to assign a separate function to each instance that is created from bgImages, so that when I call instance.collisiontext, it calls that function. I feel like I am doing something wrong. If you look down...

Posted Apr 27, 2014 6:21 AM

Python input validation function (how to get it to run again?)

Just making an attempt at a simple role-playing game, however I'm in need of some idea on how to get the following code to work properly: from character import demon, knight, skeleton import fight import createcharacter import drawmap character = createcharacter.makechar() print """ You are in Shitwick...

Posted May 06, 2014 7:00 AM

JQuery event blur function - how to DRY it up?

I'm using jQuery for an employee management form. This code works, but it is repetitive. Is there a better way to do this? I don't have a lot of experience with jQuery, so I appreciate any pointers you have. The selectors...

Posted May 08, 2014 4:45 AM

How to correctly build Jsoup.jar and export it to be used by Android APP

The current Jsoup release 1.7.3 has a known issue that it is using String.isEmpty() which is not supported by Android API Level 8. I can see crash report of my app so I tried to fix this by change the source...

Posted May 13, 2014 3:12 AM

Drop down box text disappears after completing a function, how can I get it to display what option was chosen?

The functions below work fine, the only thing I need help with is that when I pick an option from a drop down menu, it runs the function, but it erases all of the options in the drop down box....

Posted Jun 23, 2014 10:14 AM

Need to learn how to correctly access instance variables by "this" pointer, like it can simply be done in Java

Hello I have experience in Java programming. I am not sure how to set the instance variables with the c++ programming language. I understand the "this" refers to the memory address of the current object instance, such as Java but...

Posted Jul 01, 2014 2:05 AM

OpenCV: How to correctly pass a Mat object to a function

I am trying to pass a Mat to my function: void drawline(Mat f) { cv::namedWindow("Output Window"); cv::imshow("Output Window", frame); } int main() { Mat frame = cv::imread("chhha.png"); drawline(frame); ...

Posted Jul 07, 2014 7:36 AM

How to correctly add sharing option becasue it is not showing in Imageviewer app?

I read the offical Android website, where we can Add sharing option at the top of the App (Action bar). However, When I implemented it in my app code. It is not working.. I can see images and I can...

Posted Aug 22, 2014 7:07 AM

How to correctly pass in MySQL associative array to PHP function?

I have the following code below. An array, $benchmarks, which I declare and prepopulate with a few problem types, a mysql_query which I execute earlier and save as $noobList and the function calculateBenchmark. If I take the code inside the...

Posted Oct 05, 2014 12:16 PM

How to correctly show a JFrame after initializing it in a method

This is a long question, so bear with me for a minute. I'm making a Game of Life application which first shows a JFrame with a grid of JButtons. If you click on a JButton its background turns black and...

Posted Oct 28, 2014 9:43 AM

How to correctly display HTML page in browser and mobile

I have a following HTML page. In this page I face different problems in desktop and mobile browser. In desktop browser all things is display, but the image is too big. If I try to make it small then...

Posted Nov 21, 2013 3:14 AM

Apache2 and php5-fpm, how to correctly process *.phps files?

I've setup my server using apache2 and php5-fpm, pretty much like in this guide: http://www.versatilewebsolutions.com/blog/2012/11/installing-apache-2-with-php-fastcgi-on-ubuntu-12-10.html The only question left is, how can I configure it to correctly process the *.phps files? I want to show the highlighted code of them. There are guides for...

Posted Nov 21, 2013 4:28 AM

Java Script Function. How to pop-up different div when button value changed

So I'm creating advent calendar from 1 to 23 day of December. All 23 days will be shown on the screen, but user can click only on current day (Other days (buttons) are disabled). After user click the button pop-up...

Posted Nov 21, 2013 11:52 AM

How to modify markup in a TinyMCE popup iframe (Wordpress image editor)?

I am trying to hide the Alignment radio buttons for images uploaded to the post content area, but can't figure out how to add a custom CSS or JS file to the Image Editor dialog. I've successfully added a filter to...

Posted Nov 21, 2013 5:02 AM

 
 
Email:

Username:

Password:


Register

Username:

Password:

Login


Forgot Password
Reset my password!