Posts

Showing posts from 2012

JQuery - Things to learn - ID selector with a nested HTML markup string inside Javascript

At first I thought since JQuery is so good that it could pin point to a tag using the ID selector very easily, then it shouldn't be a problem to do the same thing within a client side script as follow. ... var htmlString = " <div id=\"outerpanel\"> <div id=\"innerpanel1\"> Something here</div> <div id="\innerpanel2\"> another thing here</div> </div> "; var contentOne = $(htmlString).filter('#innerPanel1').html(); alert(contentOne); ... So I did try this out, and found out that it didn't work at all.  It turns out that in order to search for the panel, it has to traverse through the child within the DIV with the ID outerPanel.  I have no idea on why is that so, so I just going to remember next time that in the case of manipulating an object using JQuery within a script, I'll have to traverse through the children elements in order to look for it.

Yahoo! Messenger voice call & video call disabled, why?

Was trying to help my colleague to troubleshoot her laptop, where the Yahoo! Messenger voice chat & video chat are disabled even though the setup of the sound & video are all correctly configured.  Yet, it will still throw the error message "Your computer is not connected to the network", which is quite amazingly considered that the wireless network is working plus the Skype is able to make the call. After several finding on the Internet and on some help site, non of the solutions are able to solve the problem.  Then I recalled the other colleague is also using the same laptop and her Yahoo! Messenger is able to use video call & voice call.  I was guessing the whole time of what could be the possible cause that hers is working but not this one.  Then a thought came to my mind, could it be the firewall? The firewall is correctly configured, so what else inside there that is blocking the connection?  The other security software that's installed is the Trend