sorry, what digg.com does when you arent logged in
On Apr 2, 3:55 pm, "Tom Shafer" <[EMAIL PROTECTED]> wrote:
> no, im trying to do something like what dig does if you arent logged
> in
>
> On Apr 2, 2:52 pm, "Brandon Aaron" <[EMAIL PROTECTED]> wrote:
>
> > I'm pretty confused about what is actually needed and the structure of
> > the markup but I'm going to take a shoot at it.
>
> > I'm going to assume that you have markup like this:
>
> > <div id="something"></div>
> > <a href="/back_up_respond_page_for_js_disabled.php">Respond</a>
> > <div id="somethingElse"></div>
> > <a href="/back_up_respond_page_for_js_disabled.php">Respond</a>
>
> > If that is correct then I would suggest adding a class name to the a
> > tags ... something like "respond". Using classes on the a tags and a
> > call to prev('div') should provide everything you need. Here is what
> > the html should look like.
>
> > <div></div>
> > <a href="/back_up_respond_page_for_js_disabled.php"
> > class="respond">Respond</a>
> > <div></div>
> > <a href="/back_up_respond_page_for_js_disabled.php"
> > class="respond">Respond</a>
>
> > Now we can access everything we need without the use of IDs at all like so:
>
> > $(function() {
> > $('a.respond').bind('click', function() {
> > $(this).prev('div').block('<h1>Processing...</h1>');
> > return false;
> > });
>
> > });
>
> > Hope that helps.
>
> > --
> > Brandon Aaron
>
> > On 4/2/07, Tom Shafer <[EMAIL PROTECTED]> wrote:
>
> > > No that diddnt work. Here is what I am doing, when you click your turn
> > > it should bring up the block.
>
> > > On Apr 2, 1:15 pm, "Mike Alsup" <[EMAIL PROTECTED]> wrote:
> > > > Ok, then I think you have too many click handlers. Maybe something
> > > > like this?
>
> > > > function BlockLog(id) {
> > > > $('#'+id).block('<h1>Processing...</h1>');
>
> > > > }
>
> > > > Mike
>
> > > > On 4/2/07, Tom Shafer <[EMAIL PROTECTED]> wrote:
>
> > > > > I am making unlimited divs using php and below eac div there is a link
> > > > > that says something like respond,
> > > > > But if they are not logged and they click on respond the div is
> > > > > blocked out using blockui. So I need to pass the id of the div to be
> > > > > blocked to this function so that the div will be blocked for a second
> > > > > or two with a message.
>
> > > > > Thanks
>
> > > > > On Apr 2, 12:47 pm, "Mike Alsup" <[EMAIL PROTECTED]> wrote:
> > > > > > Tom, what exactly are you trying to do? You have an anchor click
> > > > > > handler that adds a click handler to some other element
> > > > > > (BlockLogin1)
> > > > > > which then blocks some other element (blockMe)? What dynamic divs
> > > > > > are
> > > > > > you referring to?
>
> > > > > > > Thanks but it doesnt seem to work. I am really stuck on how to do
> > > > > > > this. I have tried everything I can think of. Has anyone ever done
> > > > > > > anything like this before?
>
> > > > > > > On Apr 1, 8:41 pm, Kush Murod <[EMAIL PROTECTED]> wrote:
> > > > > > > > Hi Tom,
>
> > > > > > > > I'd normally do this, not sure if it is correct way of doing
> > > > > > > > things but
> > > > > > > > it works for me
> > > > > > > > If id you are passing is someID to BlockLog. notice this '#'+
> > > > > > > > ...
>
> > > > > > > > $('#'+someID).click(function() {
>
> > > > > > > > ..
> > > > > > > > Give it a try
> > > > > > > > --Kush
>
> > > > > > > > Tom Shafer wrote:
> > > > > > > > > I am trying to select different divs, each is given a unique
> > > > > > > > > id
>
> > > > > > > > > and im using this to apply a effect to it
> > > > > > > > > function BlockLog(id) {
> > > > > > > > > $(id).click(function() {
> > > > > > > > >
> > > > > > > > > $('#blockMe').unblock().block('<h1>Processing...</h1>',
> > > > > > > > > { border: '3px solid #a00' });
> > > > > > > > > });
> > > > > > > > > }
>
> > > > > > > > > with this to call it
> > > > > > > > > <a href="#" onClick="return BlockLog('BlockLogin1')">Your
> > > > > > > > > Turn</a>
>
> > > > > > > > > with a div like this
>
> > > > > > > > > <div id="blockMe">test</div>