101
frankblack
Re: Little Help with Marquee
  • 2009/8/21 19:33

  • frankblack

  • Just can't stay away

  • Posts: 830

  • Since: 2005/6/13


Your marquee sits in a foreach, so this is why it gets multiplied. Perhaps like this:

<marquee scrolldelay=50 scrollamount="3" hspace="2" height="30" width="100" >
<{foreach 
item=comment from=$block.comment}> 
<{
$comment.name}> : <{$comment.comment}> | 
<{/foreach}>
</
marquee>



102
frankblack
Re: Ajax calls directly from Jquery
  • 2009/8/21 19:13

  • frankblack

  • Just can't stay away

  • Posts: 830

  • Since: 2005/6/13


Thx for the offer. I managed it ... nearly I have to click the button twice, which shows that js for the box loads too early, but I don't know how to remove that. I'll send you a pm otherwise the people burst out laughing about my code.



103
frankblack
Re: Ajax calls directly from Jquery
  • 2009/8/21 16:01

  • frankblack

  • Just can't stay away

  • Posts: 830

  • Since: 2005/6/13


arrgll#!*? I don't get it. The thickbox pops up but remains empty. I am about to give up.

What I wrote must be total crap. How can I tell that the generated content in the php function is taken into the thickbox. My inabilities make my angry...



104
frankblack
Re: Ajax calls directly from Jquery
  • 2009/8/21 8:00

  • frankblack

  • Just can't stay away

  • Posts: 830

  • Since: 2005/6/13


Little progress, but just jumping from one problem to another. I finally put the need values into the id.

$imagebar .= '<img class="innertrigger" id="'.$id.'|'.$xpidstack[$thekey].'|'.$path.'|'.$equal.'" src="'.DEBASER_URL.'/images/playericons/'.$iconstack[$thekey].'" alt="'.$namestack[$thekey].'" title="'.$namestack[$thekey].'" /> ';


$(document).ready(function () {
$(
"img.innertrigger").click(function () {
var 
splitit this.id.split("|");
$(
"#showthecode").load("'.DEBASER_URL.'/ajaxed.php", { action "ajaxinner"part1 splitit[0], part2 splitit[1], part3 splitit[2], part4 splitit[3] });
});
});


So far so good, as the values get posted. But now in ajaxed.php the data have to be processed, a thickbox should be displayed AND if splitit[3] has a value an equalizer should be displayed. Yet I don't know how to solve this...



105
frankblack
Re: Ajax calls directly from Jquery
  • 2009/8/20 21:10

  • frankblack

  • Just can't stay away

  • Posts: 830

  • Since: 2005/6/13


Hmmm, minor setback.

Someone here giving me a helping hand? My problem getting this realized with jquery, with xajax it was no problem for me.

An imagebar will be constructed from the contents of the database resp. what is called available player types.

Now I have to pass four different types of information to the js function to get the ajax call started: the id of the file, the player which is associated with the image I have to click on, a path and an extra for showing/hiding another div.

The portion of the image bar goes like this:
$imagebar .= '<img src="'.DEBASER_URL.'/images/playericons/'.$iconstack[$thekey].'" onclick="xajax_xajaxinnerdisplay('.$id.', '.$xpidstack[$thekey].', '.$path.')'.$equal.'" alt="'.$namestack[$thekey].'" title="'.$namestack[$thekey].'" /> ';


I have no single clue how to do this...



106
frankblack
Re: Ajax calls directly from Jquery
  • 2009/8/20 18:07

  • frankblack

  • Just can't stay away

  • Posts: 830

  • Since: 2005/6/13


OK, I see. So one point for XAJAX, since you can disable debug there. Gulp! So I have to write a module without any error.

I hope the next core comes with some better debug modes. I use several options, but they are not "handy" for the "masses" I fear.

Another point for XAJAX: I don't have to care what to return. E.g. displaying html in a textarea. But I finally made it. So step by step I am progressing



107
frankblack
Re: Ajax calls directly from Jquery
  • 2009/8/20 17:40

  • frankblack

  • Just can't stay away

  • Posts: 830

  • Since: 2005/6/13


Quote:
But without its context, it will not give you too much things ...


... but it pushes me into the right direction.

Quote:
note, this part is important:

error_reporting(0);
@$xoopsLogger->activated = false;


Why? XOOPS debug conflicting with jquery? Or other reason?



108
frankblack
$xoTheme vs. $xoopsTpl
  • 2009/8/20 15:45

  • frankblack

  • Just can't stay away

  • Posts: 830

  • Since: 2005/6/13


Is there any reason why I should NOT use $xoTheme->addScript() or $xoTheme->addStylesheet in comparison to $xoopsTpl->assign('xoops_module_header', 'xx') for the XOOPS version 2.3 and higher?

Or is the use of $xoTheme depending on "modern" themes, I mean also the backend themes? Or is xoops_module_header deprecated?

Silly question? My speciality! <- should be my new signature.



109
frankblack
Re: Ajax calls directly from Jquery
  • 2009/8/20 13:23

  • frankblack

  • Just can't stay away

  • Posts: 830

  • Since: 2005/6/13


Quote:
What do you think of jquery compared to xajax?


Short: different! Long: this would save me some bytes, but this also means rewriting a few things and a few more things to learn. I don't know if jquery is faster than xajax. xajax makes it fairly easy, because you do not have to write so much javascript stuff.

@hervet: thx for your snippet. May I get another one from you? What is inside index.php and how do you catch the ajax events there? TIA



110
frankblack
Re: Ajax calls directly from Jquery
  • 2009/8/20 12:24

  • frankblack

  • Just can't stay away

  • Posts: 830

  • Since: 2005/6/13


This serialize is nice, but I need some more values, that are not inside a form. How would this be passed?

Like this?
var formContent = $("#selecter").serialize();
$(
"#tvlistresponse").load("'.DEBASER_URL.'/ajaxed.php?gettv=1", { formContentjustanothervar $justanothervar });


This will take me some time to rewrite the whole xajax stuff.




TopTop
« 1 ... 8 9 10 (11) 12 13 14 ... 53 »



Login

Who's Online

238 user(s) are online (170 user(s) are browsing Support Forums)


Members: 0


Guests: 238


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits