Search:
Type: Posts; User: Nihiliste
Search :
Search took 0.01 seconds.
jamesbcox1980:
"Found it. I'm getting an error, "Expected ';'" on Line 2, Character 10 of your tabs script."
I had this error also but, sorry if I'm too dumb, one thing I can't figured out is: ...
I did it with IE8.
But one thing, when I tested it, I used the script console to remove all events on the tabs, and then execute the script I pasted earlier.
Also, one thing I noticed, with IE...
Can't figured out why IE doesn't like your code, but if I had to do it, I'll do the tab swapping like this:
$(".tabmenu > li").click(function(e){
switch($(this).attr('id')){
case "news":...
If I was you, I'll do this:
<?php
defined( '_JEXEC' ) or die( 'Restricted access' );
JPlugin::loadLanguage( 'tpl_SG1' );
$mainframe = JFactory::getApplication();
Never worked with Joomla 1.6 but a quick look at the code show that $mainframe variable seems to be inexistant.
After a 5 seconds Google search I found that solution for a similar problem:
...
If you want to enlarge smaller pictures, you can add a min-(height|width) in the CSS specification. But before doing this, note that smaller images will be pixellized (not sure about this translation...
To be short, for plain HTML, you don't need nothing special except a browser to parse, analyze and display correctly the content.
But, when you have a more complex language (PHP, ASP, ...) you...
PHP needs to be interpreted to do it job, and to do this you need a web server with a PHP module. Without this, a PHP file remains, basically, a simple text file ...
So you need to put everything...
One simple thing you can do is add some properties in the CSS. Something like this should do the job:
.thumbnail span img{ /*CSS for enlarged image*/
border-width: 0;
padding: 2px;
...
If the complete script text is returned by the server (the <?php (...) ?>), it means that PHP isn't installed and/or enabled and/or configure correctly.
A quick test you can do, is create a simple...
First, the Blog function and your array containing blog entries have the same name: Blog.
Second, consequence of this, in:
while (i < blog.length && i < numEntries)
blog is undefined, so...
For the display part, what about something like ...
<img src="imgwed/<?php echo $value; ?>.jpg" style="width:100px;height:100px;" alt="" </img>
For the file existence part, you can use the...
If your goal is to send data to be saved to the server without reloading, Ajax is the solution.
For how to use Ajax, my suggestion is to have a look at this tutorial, which is, in my opinion a...
At this time, sorry but some reasons, I won't be able to do more ...
You stated that you want filter the date column, to get only the one in the specified month. But of what I see, you don't have...
Like skywalker2208 said,
To do all the 'data handling' stuff, use a database, not a file.
And, if you want to integrate this with JavaScript, I'll suggest you to have a look at Ajax + Json...
You have overlapping ' in your string. You use ' as delimiters for your echo, and you use ' in a part of your string.
Have a look at this part:
onclick="window.open('http://www.google.com',...
Javaboye, I experienced the same problem in a past project ...
I had a for .. in loop that worked fine in all browsers, except IE. So I needed to convert the for ... into a 'traditionnal' for with...
svidgen you don't have to be sorry for stating a fact ...
For my idiot answer:
First, I must admit that I was surprised to see that it was possible to compile PHP code. I never thought about...
I'm not sure if this is the cause of your problem, but I think your DOCTYPE should be:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
...
Until today I tought that PHP could only be interpreted. But after your question, I was curious so I google a little bit and I found that I was wrong ...
The only thing I can tell you is to have a...
You could test if you have a value before doing the anum.test.
Something like this should do the job:
<script language=javascript>
function checkNumeric(value)
{
if( !value ) { return...
If you use Ajax, you could keep the status value in a Session variable, or something like this ...
For example you could do something like this:
<script type="text/javascript">
$("#number_filters a").bind("click", function() {
var value = $( this ).attr( 'href' );
...
In the bind callback function, you can use:
$( this ).html() or anyother function like attr(), css() ...
to get the value you want ..