Unable To Customize The Script So It Pulls Custom User Info From The Joomla DB?
May 5, 2009
I'm currently working on an AJAX chat room (jpfchat), which is basically phpfreechat integrated with Joomla. The right column of the room shows current users in the room and refreshes dynamically via AJAX so when new users come in, everyone's session shows the new visitor. I want to be able to customize the script so it pulls custom user info from the Joomla DB. I'm attempting to do this using AJAX.
I located the part of the script that generates the list of usernames. Basically it's a 'for' loop that spits out html using javascript and the JSON response. I've appended a line to this section to execute my custom script. The problem I'm having is that while everything works great on IE, it only works on Safari if I DON'T use asynchronous and it DOESN'T work on EITHER Safari or Firefox if I DO use asynchronous.
[Code]...
View 3 Replies
ADVERTISEMENT
Jan 21, 2011
I'm having trouble accessing a custom property that I've created for an object. Does anyone see the problem with this code? this.imageSrcs is undefined inside of getImages.
Quote:
Gallery.prototype.imageSrcs = new Array();
Gallery.prototype.getImages = function(json) {
if (json) {
[code]...
View 4 Replies
View Related
Nov 1, 2011
what regular expression do i have to use to get the 2 last elements of a user agent? eg in firefox how can i get :
Mozilla/5.0 (X11; Linux i686; rv:7.0.1) Gecko/20100101 Firefox/7.0.1
Firefox
&
7.01
?
View 2 Replies
View Related
Aug 1, 2001
I don't know if I can/should do this w/ JavaScript on the client or can/should this be done on the server - and if so what language would be best?
Here's my goal:
I am asking users 4 questions - depending on the one selected - that answer creates a profile and that profiles stays with them throughout the site.
E.G.; if (women under 30) is selected this information will stay on the site throughout w/ content detailed for this group.
View 3 Replies
View Related
Jul 9, 2010
i'm trying to make a script which display all the info user has chose on the form before submission. now every thing is working as i expected, i have only one problem and it's with the checkbox element. the script is displaying only 1 option and not all the option that has been chosen .
this is the code for the specific checkbox -
$("p#dialog-parts").html($('input:checkbox[name=parts]:checked').val());
what do i need to change in order to show all the checked checkboxes and not only one?
View 1 Replies
View Related
Nov 7, 2010
I'm just starting up in web design and I have an interesting challenge that I'm hoping can be solved w/java script. I have a site with an application form. When the form is to be submitted, the form data needs to be emailed to the correct person to handle that particular application. However, that can't be determined by anything specific in the form. It can only be determined by the link that they clicked on to get to the form. I really don't want to have 22 identical forms with just a different EmailTo addie, which is what the previous site developer did. Someone please tell me this can be done w/java script? If not w/java script
View 4 Replies
View Related
Jul 2, 2009
I'd like to create a quick and dirty validation method for a form. It's not meant to be very secure.
The way I picture it working is this - there is an input field that asks for a password. If the user types in the password correctly, the "submit" div tag will change from "none" to "block". , which will display the submit button. I just am not familiar with JS enough to know if that's possible.
Here's what I'm starting with:
Code:
View 6 Replies
View Related
Dec 12, 2011
I am trying to write a small javascript program where I can call the following two functions and store information which a user enters. The problem is if I call the function a second time to add more information the array gets overwritten.[code]...
View 5 Replies
View Related
Mar 10, 2011
I'm trying to create a function to show a custom message as a tooltip when a user hovers over a table row.
My tr tag looks like this
The javascript function looks like this:
jQuery seems to be loaded correctly, as I get the alert. I don't get the tooltip, however.
What I'm trying to do, in case this is totally retarded and impossible to see, is to hover a tooltip over the clicked row instead of passing it in as a variable.
View 8 Replies
View Related
Jul 14, 2010
How to create a variable that pulls the value from a select form element.
View 2 Replies
View Related
May 23, 2011
I'll admit to being a newbie with JQuery, XML and Ajax. I'm trying to create a page which pulls dynamic links from an XML file. Here is the page: [URL] Here is the link to the xml file: [URL] I can get the url to pull as text, but I cannot make it into a link, no matter what I seem to try. I'm sure it's a syntax error - but I just don't know enough to know what it is. I'm also going to need to pull a URL for an image, and I am guessing that the process is similar.
View 2 Replies
View Related
Dec 22, 2010
i have a dropdownlist with some values,ex: One, Two and Three; One being the default value selected on load of dropdown list.When I select Two or Three, there is onselectedchange event fired and I can write custom code in handler. But I also want to do some custom handling when page is loaded and user justs clicks on default value of "One". I want to take an action when user clicks on default value, "One" of dropdwn.
View 15 Replies
View Related
Mar 7, 2011
I have such js code:
$(document).ready(function(){
$('#a').click(function() {
alert('Handler for .click() called.');
});
});
And I have a link in my page <a id = "a" href="url">Link text</a> I checked the view source of web page, scripts are loaded, my js file is called bannerUpload:
[Code]...
View 2 Replies
View Related
May 16, 2011
Tried to install cycle plugin to Joomla 1.6.3 but I keep getting the installation error:"Cannot find xml setup file"
Using Joomla backend Admin/extension manager/upload package file.
View 2 Replies
View Related
Aug 5, 2011
is it possible to use jquery let the button on the page be clicked, and let others javascript library to function.
View 4 Replies
View Related
Aug 17, 2011
Am customizing a Joomla website and i need to know how to get a nice and fine javascript accordion horizontal panel which is so smooth and good looking to add in Joomla Home page.
some horizontal javascript accordion with images and link to another page.
View 1 Replies
View Related
Oct 6, 2011
I am trying to add this affiliate code to my site www.koolgadjets.com but when i add this code in article the code is getting disappeared . Javascripts are coming properly but how do i embed iframe code to my articles.
<iframe src="http://www.flipkart.com/affiliateWidget/simpleBanner?bc=FFFFFF&tc=333333&lc=A52A2A&buy=&affid=koolgadjet&id=MOBCRZGFNGHHZWT3&type=3&price=yes&border=yes&height=260&width=120" style="width:120px;height:260px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe>
View 1 Replies
View Related
Feb 3, 2010
Is it possible for someone to give me step by step instructions on how to make mootool and jquery working together? i use joomla 1.5.15.
View 4 Replies
View Related
Oct 12, 2010
i have the following problem: a Joomla Gallery uses a javascript to show fullsize images.but when the popup windows comes out, it doesn't have any properties (page title, url about:blank, blank background etc) think the following to be the code that calls the popup: what's wrong?NOTE I already had to remove some "spaces" from the code because the Joomla SEF was changing the urls forbidding the right execution of everything, maybe it's something like that... dunno :cry:
$htmltext2 .= "<script language="JavaScript">";
$htmltext2 .= "function pgpopup(pgimagefile,pgimagetitle,pgimagedescription) {
";
[code].....
View 6 Replies
View Related
Jul 15, 2009
basically i have this menu system which works using a couple of jquery scripts it all works fine etc, but now i am porting my site into a joomla design ( dont ask why just a challange )at the moment i have a module on the left which has my menu in and on the right is another module which loads the content depending on the outcome of the script:at the moment what ihave done is not the finished product as i would like to make sure that this will work before moving to the next part of my scriptbefore i go on and on and on ill show you what i have:
$(document).ready(function(){
$('ul.submenu>li a').click(function() {
$("div#defaultStuff").fadeOut("slow");
[code]....
View 1 Replies
View Related
Jan 22, 2011
What I'm looking to do is have a folder of images that I have show up on my website.I'm also looking to pull from this folder up to 6 or 7 times on the same page w/ randomized pictures that do not repeat.Finally, I'm looking to be able to size and name these images based on which image randomly pulls. b/c it's not grabbing the images.
images = new Array()
images[images.length] = 'images/example.jpg'
images[images.length] = 'images/example.jpg'[code].....
View 7 Replies
View Related
Jul 26, 2010
Trying to use a small bit of script to slide open and closed a div.
Copied it from another page where I have it working just fine. Coding in coldfusion.
When clicked, nothing happens, and firebug pulls an error of DC_ShowDeptStaff is undefined.
Script is:
Code:
Call is:
Code:
Full code is:
Code:
View 5 Replies
View Related
Oct 10, 2011
Id like to control scrolling of two divs with one scrollbar as in this example here
[URL]
At the same time i want to customize the scrollbar. Ive been using Flexcroll which work fine on a single div. But as soon as i insert flexcroll.js to head of document in the example, the sync of the two divs breaks and only the div with Flexcroll attached scrolls.
Anyone know how to solve this? You can find the code im using in the example or i can post.I dont have to use Flexcroll, so if you know of any other application that can customize scrollbar and control scroll on two divs at the same time.
View 4 Replies
View Related
Nov 3, 2009
i need to make my alert box stand out a bit more i have looked everywhere but can't find anything! i was looking to do stuff like Bold, Italics, Underline, Fonts, Sizes, Borders, Backgrounds maybe something that flashed!i'm not asking you to do it for me just tell me how and were to put the different codes!
View 3 Replies
View Related
May 29, 2001
I want to use htaccess for entry to protected pages, but for a large group of users. Is there a way to change the color of the popup box to blend with the site?
View 2 Replies
View Related
Nov 9, 2010
How to customize, the confirm box value. I need to change ok and cancel to Yes and No
View 1 Replies
View Related