We have finished a quick AJAX/POST project for VOIP provider, try it out for free here on this page.
Will also have a widget developed in the near future!

For ajax version:

http://www.dgnetrix.com/testcall/testcall-ajax.php

——————————————————————-

Try dgNetrix Network for free today! Call any North American Number for free!

Connect your free call today!

How to overcome challenges (exercise)
Keep challenging yourself
Failure is part of the process
Abraham Lincoln Didn’t Quit
Probably the greatest example of persistence is Abraham Lincoln. If you want to learn about somebody who didn’t quit, look no further. Born into poverty, Lincoln was faced with defeat throughout his life. He lost eight elections, twice failed in business and suffered a nervous breakdown. He could have quit many times – but he didn’t and because he didn’t quit, he became one of the greatest presidents in the history of our country.
Lincoln was a champion and he never gave up. Here is a sketch of Lincoln’s road to the White House:
• 1816: His family was forced out of their home. He had to work to support them.
• 1818: His mother died.
• 1831: Failed in business.
• 1832: Ran for state legislature – lost.
• 1832: Also lost his job – wanted to go to law school but couldn’t get in.
• 1833: Borrowed some money from a friend to begin a business and by the end of the year he was bankrupt. He spent the next 17 years of his life paying off this debt.
• 1834: Ran for state legislature again – won.
• 1835: Was engaged to be married, sweetheart died and his heart was broken.
• 1836: Had a total nervous breakdown and was in bed for six months.
• 1838: Sought to become speaker of the state legislature – defeated.
• 1840: Sought to become elector – defeated.
• 1843: Ran for Congress – lost.
• 1846: Ran for Congress again – this time he won – went to Washington and did a good job.
• 1848: Ran for re-election to Congress – lost.
• 1849 Sought the job of land officer in his home state – rejected.
• 1854: Ran for Senate of the United States – lost.
• 1856: Sought the Vice-Presidential nomination at his party’s national convention – got less than 100 votes. 1858: Ran for U.S. Senate again – again he lost.
• 1860: Elected president of the United States.

by Karl Swedberg

Although jQuery has a nice set of slide methods — .slideDown(), .slideUp(), and .slideToggle() — sometimes we may want to slide an element in a different direction. Fortunately, it’s pretty easy to do.

Reverse the Slide Direction

With the built-in slide methods, elements are shown by sliding them down and into view. But what if we want to slide something from the bottom up and into view? The trick here is to use some judicious CSS. Let’s start with a simple HTML structure:

HTML:

  1. <div id=”slidebottom” class=”slide”>
  2. <button>slide it</button>
  3. <div class=”inner”>Slide from bottom</div>
  4. </div>

To get the inner div to slide up, we’ll anchor its bottom edge to the bottom of the bottom of the nearest positioned ancestor (in this case, the #slidebottom div):

CSS:

  1. .slide {
  2. position: relative;
  3. }
  4. .slide .inner {
  5. position: absolute;
  6. left: 0;
  7. bottom: 0;
  8. }

Other properties such as width, padding, margin, and background-color have been set for these elements, but only the essential properties for modifying the slide behavior are shown above.

Note: I’ll be using the term positioned to refer to elements that have the CSS position property set to something other than “static.” Both divs in this example are positioned — one absolutely and the other relatively.

Now, we can write the jQuery the same way we would with a traditional slide effect:

JavaScript:

  1. $(document).ready(function() {
  2. $(‘#slidebottom button’).click(function() {
  3. $(this).next().slideToggle();
  4. });
  5. });

Try it out:

Horizontal Slides

Animate Width

We can also slide elements to the left and right. The simplest way is to animate the element’s width property.

JavaScript:

  1. $(document).ready(function() {
  2. $(‘#slidewidth button’).click(function() {
  3. $(this).next().animate({width: ‘toggle’});
  4. });
  5. });

In this case it’s not necessary for the sliding element to be positioned.

Animate this element’s width

While animating the width is fine for what it is, I’m not crazy about how the text wraps as the width decreases. One way to avoid the wrapping is to add a CSS declaration such as white-space: nowrap;, but that would mess up the appearance of an element with a lot of text—one in which we would expect to see text wrapping when it is at full length.

Animate Left

Another way to avoid the text-wrap issue is to animate the element’s left property. Here, it’s important once again to make sure that the element is positioned. After all, we can’t move an element if it’s static.

With this animation, we need to calculate how far to move the element. The following code rests on two assumptions: (1) the sliding element has an outerWidth() that is equal to or greater than its parent element’s width, and (2) the sliding element is initially set to left: 0;. You may have to adjust your code if either one of these assumptions doesn’t hold in your situation.

JavaScript:

  1. $(document).ready(function() {
  2. $(‘#slideleft button’).click(function() {
  3. var $lefty = $(this).next();
  4. $lefty.animate({
  5. left: parseInt($lefty.css(‘left’),10) == 0 ?
  6. -$lefty.outerWidth() :
  7. 0
  8. });
  9. });
  10. });

Lines 5 through 7 use a “ternary” operator that basically says, “If the left css property equals 0, move the element to the left as many pixels as it is wide (including padding and border); if not, move it back to 0.”

Animate this element’s left style property

Also, if we want the element to be hidden when it slides to the left, we need to add overflow: hidden; to its parent element.

Animate Left Margin

Finally, we can achieve the same effect as the left animation by animating the marginLeft property. In this case, we still need overflow: hidden; on the parent element, but the sliding element does not need to be positioned.

JavaScript:

  1. $(document).ready(function() {
  2. $(‘#slidemarginleft button’).click(function() {
  3. var $marginLefty = $(this).next();
  4. $marginLefty.animate({
  5. marginLeft: parseInt($marginLefty.css(‘marginLeft’),10) == 0 ?
  6. $marginLefty.outerWidth() :
  7. 0
  8. });
  9. });
  10. });

For the sake of variety, we’re sliding this one to the right.

Animate this element’s margin-left style property

With a couple little tweaks, these horizontal slides can be used for a horizontal accordion.

In this post, I would like to share a little jQuery code snippet that makes getting URL parameters and their values more convenient.

Recently, while working on one of my projects, I needed to read and get parameter values from URL string of the current page that was constructed and sent by PHP script. I came across this short and sweet JavaScript code snippet by Roshambo that does just that.

// Read a page's GET URL variables and return them as an associative array.
function getUrlVars()
{
    var vars = [], hash;
    var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&');
    for(var i = 0; i < hashes.length; i++)
    {
        hash = hashes[i].split('=');
        vars.push(hash[0]);
        vars[hash[0]] = hash[1];
    }
    return vars;
}

The function returns an array/object with your URL parameters and their values. For example, consider we have the following URL:

http://www.example.com/?me=myValue&name2=SomeOtherValue

Calling getUrlVars() function would return you the following array:

{
    "me"    : "myValue",
    "name2" : "SomeOtherValue"
}

To get a value of first parameter you would do this:

var first = getUrlVars()["me"];

// To get the second parameter
var second = getUrlVars()["name2"];

To make the script syntax to look more jQuery like syntax I rewrote it as an extension for jQuery:

$.extend({
  getUrlVars: function(){
    var vars = [], hash;
    var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&');
    for(var i = 0; i < hashes.length; i++)
    {
      hash = hashes[i].split('=');
      vars.push(hash[0]);
      vars[hash[0]] = hash[1];
    }
    return vars;
  },
  getUrlVar: function(name){
    return $.getUrlVars()[name];
  }
});

Now, if you include the above code in your javascript file, you can get URL parameter values in the following way:

// Get object of URL parameters
var allVars = $.getUrlVars();

// Getting URL var by its nam
var byName = $.getUrlVar('name');

That’s it! You might also find the following jQuery related articles on this blogs interesting:

  1. Cross-domain AJAX querying with jQuery
  2. Javascript for() loop vs jQuery .each() performance comparison
  3. Create jQuery custom selectors with parameters
  4. JavaScript / jQuery password generator
Posted by Uzbekjon at 12:59 AM
Subscribe to jQuery Howto

13 comments:

Anonymous said…

Shouldn’t you cache the decoded vars?

September 16, 2009 2:07 AM

Nick Fitzgerald said…

I don’t really see the point of making this a jquery plugin in this case, since it doesn’t take jQuery or DOM elements and doesnt return them either.

Nonetheless, This is by far the cleanest implementation of this utility I have seen.

Also, jQuery will let you go back the other way too:

$.param({
me: “myValue”,
name2: “someOtherValue”
});

returns “me=myValue&name2=someOtherValue”

This is really nice for caching the results of jQuery plugins that take objects as parameters. Usually, if you try to say cache[obj] = foo obj.toString will be called and you will be left with “[object Object]“, which is not too helpful, but $.param() handles everything cleanly and quickly. So, now cache[$.param(obj)] = foo works out perfectly.

September 16, 2009 7:56 AM

Anonymous said…

Thanks !!

September 16, 2009 11:17 AM

Vi said…

Just one line is enough inside getUrlVars():
return window.location.href.slice(window.location.href.indexOf(‘?’)).split(/[&?]{1}[\w\d]+=/);

Take care

September 16, 2009 1:04 PM

Shane Graber said…

That’s pretty sweet. I’m in the need for just this bit of code. Thanks! :)

Shane

September 16, 2009 3:48 PM

Will said…

I was going to reply to this post with a regex solution, which I think is much more elegant. However, someone has obviously beat me to it:

http://ejohn.org/blog/search-and-dont-replace/

September 16, 2009 4:51 PM

Will said…

Er, I posted too soon. The page I linked to wasn’t solving this exact problem. Here’s the solution that solves this problem:

function getUrlParameters() {
var map = {};
var parts = window.location.href.replace(/[?&]+([^=&]+)=([^&]*)/gi, function(m,key,value) {
map[key] = value;
});
return map;
}

September 16, 2009 5:05 PM

eugene said…

you are confusing location.search and location.hash

here is an example i built for a framework that extracts both search and hash

var Params = {
/*
Get
——————————-
walk through window.location.search and window.location.hash
generate object (result) from iteration
*/
Get:function()
{
result = {};
request = {
search:window.location.search.slice(1, window.location.search.length),
hash:window.location.hash.slice(1, window.location.hash.length)
}

// check
for(type in request)
{
if(request[type] != “”)
{
var x = request[type].split(“&”);
for(i in x)
{
var y = x[i].split(“=”);
var prop = y[0];
var value = y[1];
result[prop] = value;
}
}
}
return result;
}
}

where result will be an object as such
result = {
search:{
prop:value,…
},
hash:{
prop:value,…
},
}

ps: love your articles
addons.32teeth@gmail.com

September 17, 2009 6:19 AM

Anonymous said…

I know this is completely unrelated but based on your understanding of jquery, please indulge me an see if you can help me…

I have this code
jQuery(document).ready(function() {

$(‘a’).click(function() {

I have a lot of a (=link) tags generated dynamically after an Ajax call that I tug inside a div tag but for the life of me they do not get selected based on the event above…can you help me out? thanks!

September 17, 2009 4:59 PM

rossale said…

Looks great!! But how to call an extension in jquery ?

Thanks Alex

September 21, 2009 8:09 AM

Anonymous said…

This is a great bit of code, thanks a lot. I added the code in a separate js file and works well.

October 3, 2009 3:51 PM

Anonymous said…

Would be nice to add decodeURI before slice url

October 6, 2009 12:14 AM

rajakvk said…

Excellent article.

But after reading the following

http://asimilia.wordpress.com/2008/12/17/jquery-extend-confusion/

I have little bit confusion… which one is correct in our example?

October 11, 2009 12:15 AM

Post a Comment

Subscribe to: Post Comments (Atom)

find ./ -type f -exec sed -i ’s/Pic/pic/g’ {} \;

August 15, 2011

Cancer’s Secrets Come Into Sharper Focus

By

For the last decade cancer research has been guided by a common vision of how a single cell, outcompeting its neighbors, evolves into a malignant tumor.

Through a series of random mutations, genes that encourage cellular division are pushed into overdrive, while genes that normally send growth-restraining signals are taken offline.

With the accelerator floored and the brake lines cut, the cell and its progeny are free to rapidly multiply. More mutations accumulate, allowing the cancer cells to elude other safeguards and to invade neighboring tissue and metastasize.

These basic principles — laid out 11 years ago in a landmark paper, “The Hallmarks of Cancer,” by Douglas Hanahan and Robert A. Weinberg, and revisited in a follow-up article this year — still serve as the reigning paradigm, a kind of Big Bang theory for the field.

But recent discoveries have been complicating the picture with tangles of new detail. Cancer appears to be even more willful and calculating than previously imagined.

Most DNA, for example, was long considered junk — a netherworld of detritus that had no important role in cancer or anything else. Only about 2 percent of the human genome carries the code for making enzymes and other proteins, the cogs and scaffolding of the machinery that a cancer cell turns to its own devices.

These days “junk” DNA is referred to more respectfully as “noncoding” DNA, and researchers are finding clues that “pseudogenes” lurking within this dark region may play a role in cancer.

“We’ve been obsessively focusing our attention on 2 percent of the genome,” said Dr. Pier Paolo Pandolfi, a professor of medicine and pathology at Harvard Medical School. This spring, at the annual meeting of the American Association for Cancer Research in Orlando, Fla., he described a new “biological dimension” in which signals coming from both regions of the genome participate in the delicate balance between normal cellular behavior and malignancy.

As they look beyond the genome, cancer researchers are also awakening to the fact that some 90 percent of the protein-encoding cells in our body are microbes. We evolved with them in a symbiotic relationship, which raises the question of just who is occupying whom.

“We are massively outnumbered,” said Jeremy K. Nicholson, chairman of biological chemistry and head of the department of surgery and cancer at Imperial College London. Altogether, he said, 99 percent of the functional genes in the body are microbial.

In Orlando, he and other researchers described how genes in this microbiome — exchanging messages with genes inside human cells — may be involved with cancers of the colon, stomach, esophagus and other organs.

These shifts in perspective, occurring throughout cellular biology, can seem as dizzying as what happened in cosmology with the discovery that dark matter and dark energy make up most of the universe: Background suddenly becomes foreground and issues once thought settled are up in the air. In cosmology the Big Bang theory emerged from the confusion in a stronger but more convoluted form. The same may be happening with the science of cancer.

Exotic Players

According to the central dogma of molecular biology, information encoded in the DNA of the genome is copied by messenger RNA and then carried to subcellular structures called ribosomes, where the instructions are used to assemble proteins. Lurking behind the scenes, snippets called microRNAs once seemed like little more than molecular noise. But they have been appearing with increasing prominence in theories about cancer.

By binding to a gene’s messenger RNA, microRNA can prevent the instructions from reaching their target — essentially silencing the gene — and may also modulate the signal in other ways. One presentation after another at the Orlando meeting explored how microRNAs are involved in the fine-tuning that distinguishes a healthy cell from a malignant one.

Ratcheting the complexity a notch higher, Dr. Pandolfi, the Harvard Medical School researcher, laid out an elaborate theory involving microRNAs and pseudogenes. For every pseudogene there is a regular, protein-encoding gene. (Both are believed to be derived from a common ancestral gene, the pseudogene shunted aside in the evolutionary past when it became dysfunctional.) While normal genes express their will by sending signals of messenger RNA, the damaged pseudogenes either are mute or speak in gibberish.

Or so it was generally believed. Little is wasted by evolution, and Dr. Pandolfi hypothesizes that RNA signals from both genes and pseudogenes interact through a language involving microRNAs. (These signals are called ceRNAs, pronounced “sernas,” meaning “competing endogenous RNAs.”)

His lab at Beth Israel Deaconess Medical Center in Boston is studying how this arcane back channel is used by genes called PTEN and KRAS, commonly implicated in cancer, to confer with their pseudotwins. The hypothesis is laid out in more detail this month in an essay in the journal Cell.

Fueled by the free espresso offered by pharmaceutical companies hawking their wares, scientists at the Orlando meeting moved from session to session and browsed corridors of posters, looking for what might have recently been discovered about other exotic players: lincRNA, (for large intervening noncoding), siRNA (small interfering), snoRNA (small nucleolar) and piRNA (Piwi-interacting (short for “P-element induced wimpy testis” (a peculiar term that threatens to pull this sentence into a regress of nested parenthetical explanations))).

In their original “hallmarks” paper — the most cited in the history of Cell — Dr. Hanahan and Dr. Weinberg gathered a bonanza of emerging research and synthesized it into six characteristics. All of them, they proposed, are shared by most and maybe all human cancers. They went on to predict that in 20 years the circuitry of a cancer cell would be mapped and understood as thoroughly as the transistors on a computer chip, making cancer biology more like chemistry or physics — sciences governed by precise, predictable rules.

Now there appear to be transistors inside the transistors. “I still think that the wiring diagram, or at least its outlines, may be laid out within a decade,” Dr. Weinberg said in an e-mail. “MicroRNAs may be more like minitransistors or amplifiers, but however one depicts them, they still must be soldered into the circuit in one way or another.”

In their follow-up paper, “Hallmarks of Cancer: The Next Generation,” he and Dr. Hanahan cited two “emerging hallmarks” that future research may show to be crucial to malignancy — the ability of an aberrant cell to reprogram its metabolism to feed its wildfire growth and to evade destruction by the immune system.

Unwitting Allies

Even if all the lines and boxes for the schematic of the cancer cell can be sketched in, huge complications will remain. Research is increasingly focused on the fact that a tumor is not a homogeneous mass of cancer cells. It also contains healthy cells that have been conscripted into the cause.

Cells called fibroblasts collaborate by secreting proteins the tumor needs to build its supportive scaffolding and expand into surrounding tissues. Immune system cells, maneuvered into behaving as if they were healing a wound, emit growth factors that embolden the tumor and stimulate angiogenesis, the generation of new blood vessels. Endothelial cells, which form the lining of the circulatory system, are also enlisted in the construction of the tumor’s own blood supply.

All these processes are so tightly intertwined that it is difficult to tell where one leaves off and another begins. With so much internal machinery, malignant tumors are now being compared to renegade organs sprouting inside the body.

As the various cells are colluding, they may also be trading information with cells in another realm — the micro-organisms in the mouth, skin, respiratory system, urogenital tract, stomach and digestive system. Each microbe has its own set of genes, which can interact with those in the human body by exchanging molecular signals.

“The signaling these microbes do is dramatically complex,” Dr. Nicholson said in an interview at Imperial College. “They send metabolic signals to each other — and they are sending chemicals out constantly that are stimulating our biological processes.

“It’s astonishing, really. There they are, sitting around and doing stuff, and most of it we don’t really know or understand.”

People in different geographical locales can harbor different microbial ecosystems. Last year scientists reported evidence that the Japanese microbiome has acquired a gene for a seaweed-digesting enzyme from a marine bacteria. The gene, not found in the guts of North Americans, may aid in the digestion of sushi wrappers. The idea that people in different regions of the world have co-evolved with different microbial ecosystems may be a factor — along with diet, lifestyle and other environmental agents — in explaining why they are often subject to different cancers.

The composition of the microbiome changes not only geographically but also over time. With improved hygiene, dietary changes and the rising use of antibiotics, levels of the microbe Helicobacter pylori in the human gut have been decreasing in developing countries, and so has stomach cancer. At the same time, however, esophageal cancer has been increasing, leading to speculation that H. pylori provides some kind of protective effect.

At the Orlando meeting, Dr. Zhiheng Pei of New York University suggested that the situation is more complex. Two different types of microbial ecosystems have been identified in the human esophagus. Dr. Pei’s lab has found that people with an inflamed esophagus or with a precancerous condition called Barrett’s esophagus are more likely to harbor what he called the Type II microbiome.

“At present, it is unclear whether the Type II microbiome causes esophageal diseases or gastro-esophageal reflux changes the microbiome from Type I to II,” Dr. Pei wrote in an e-mail. “Either way, chronic exposure of the esophagus to an abnormal microbiome could be an essential step in esophageal damage and, ultimately, cancer.”

Unseen Enemies

At a session in Orlando on the future of cancer research, Dr. Harold Varmus, the director of the National Cancer Institute, described the Provocative Questions initiative, a new effort to seek out mysteries and paradoxes that may be vulnerable to solution.

“In our rush to do the things that are really obvious to do, we’re forgetting to pay attention to many unexplained phenomena,” he said.

Why, for example, does the Epstein-Barr virus cause different cancers in different populations? Why do patients with certain neurological diseases like Parkinson’s, Huntington’s, Alzheimer’s and Fragile X seem to be at a lower risk for most cancers? Why are some tissues more prone than others to developing tumors? Why do some mutations evoke cancerous effects in one type of cell but not in others?

With so many phenomena in search of a biological explanation, “Hallmarks of Cancer: The Next Generation” may conceivably be followed by a second sequel — with twists as unexpected as those in the old “Star Trek” shows. The enemy inside us is every bit as formidable as imagined invaders from beyond. Learning to outwit it is leading science deep into the universe of the living cell.

Is America the Most Indebted of the Developed Nations?

ByLOREN BERLINPosted 5:00PM 08/09/11Economy,Taxes,Debt

Facebook’s facial recognition system, why it’s scary

By
Chenda Ngak
Topics
Wired for Women
Facebook&#39;s facial recognition system, why it&#39;s scary (Credit: iStockphoto)

(CBS) – Remember last weekend, when you were at that party and friends were snapping photographs to post on Facebook? What if that seemingly innocent act could lead to identity theft or real-life stalking?

In a recent study done at Heinz College, Carnegie Mellon University (CMU) called “Faces of Facebook: Privacy in the Age of Augmented Reality,” Alessandro Acquisti, Ralph Gross and Fred Stutzman studied the “consequences and implications of the convergence of three technologies: face recognition, cloud computing, and online social networks.”

Presented on Thursday at the Black Hat Technical Security Conference, the study argued that with current technology, we could be “re-identified” and have our social security numbers stolen. The three experiments discussed are eye-opening.

Facial recognition and re-identification

The first experiment took pictures from a popular dating site and cross referenced them with Facebook profile pictures. Dating site members typically maintain their anonymity by using pseudonyms. With the results of the experiment being “statistically significant,” these people could easily be identified with the software.Thus their identity outed across both channels.

The second experiment was similar to the first, except this time the researchers took real-life photos and used facial recognition software to re-identify students at a select college campus. They were able to identify one third of the subjects in their experiment.

Augmented reality

In their final experiment, the researchers used the phrase “augmented reality” to describe “the merging of online and offline data that new technologies make possible.”

The study’s goal was to show “that it is possible to start from an anonymous face in the street, and end up with very sensitive information about that person.” The results were “made possible by the convergence of face recognition, social networks, data mining, and cloud computing – that [is referred] to as augmented reality.”

(Credit: AP Photo/Gerry Broome)

For example, once a photo is snapped on the street, facial recognition software can be run to identify a person online. Some data mining could possibly uncover the city and year the subject was born. A little knowledge of how social security numbers get assigned will enable would-be identity thieves to narrow down the range of numbers to work with.

“The seamless merging of online and offline data that face recognition and social media make possible raises the issue of what privacy will mean in an augmented reality world,” Acquisti said. “Ultimately, all this access is going to force us to reconsider our notions of privacy,” he continued. “It may also affect how we interact with each other. Through natural evolution, human beings have evolved mechanisms to assign and manage trust in face-to-face interactions. Will we rely on our instincts or on our devices, when mobile phones can predict personal and sensitive information about a person?”

What makes Facebook’s facial recognition system so scary?

Apple has enabled the software on iPhoto for years, but the data is located on private hard drives (for the most part). Google has a version that identifies objects and locations called Goggles, but it doesn’t include facial recognition (for now). Facebook by far comes the closest to enabling the future that researchers Acquisti, Gross and Stutzman depict.

Consider that Facebook is already in the cloud, their privacy terms are ever-changing and, while you can opt out of automatic facial recognition, the fact is there are probably hundreds of photos already tagged to your name.

Posted at 07:57 PM ET, 07/30/2011

Matt Damon’s clear-headed speech to teachers rally

For the past 6 months at least, I’ve had varied versions of ‘JavaScript embedded into Colorbox’ as a search term that has led to my website and after numerous occasions of useless dead ends on my site, I thought that I’d go ahead and write a post about a very basic way to get this done.

The easiest way to call a Colorbox is with the following code:

$(“idColorboxLink”).colorbox({href:”/link/”, open:true});

Visit the demo page for Colorbox to see other ways to open it.

There are exactly 5 ways that you can place your JavaScript so that your colorbox content will be affected by it.

onOpen (Before Colorbox opens)
onLoad (While Colorbox is opening)
onComplete (Content is displayed in the Colorbox)
onCleanup (While Colorbox is closing)
onClosed (Colorbox is closed)

Then you just enter them into the code as follows:

$(“idColorboxLink”).colorbox({href:”/link/”, onOpen:function(){}, onLoad:function(){}, onComplete:function(){}, onCleanup:function(){}, onClosed:function(){}, open:true});

If you had a function like…fillField, you could just call it like this:

$(“idColorboxLink”).colorbox({href:”/link/”, onComplete:function(){fillField()}, open:true});

This probably could have been much more elaborate, but I’m more a use it to learn it kind of person and I thought that this might at least provide an idea of what to do if nothing else for those who are searching for this.

Have a great day.