Topic: meta_forward

I am using meta_forward instead of hyperlink_no_params 


hyperlink_no_params : i have to click a link  which is too time consuming also it not good for long data entry process .

hence i have used meta_forward but redirecting is done quickly within 1-2 sec , and i am unable to see  error message.

i have set content='20 ( includes/ui/ui_controls.inc ) but its not working properly for meta_forward , i need 20 or 50 sec because i need to show some error message ( if its occurs ) .

any solution or update on this .. please check

Re: meta_forward

any here ?.. please let me know

Re: meta_forward

In the said file includes/ui/ui_control.inc did you alter line 138:

    echo "<meta http-equiv='Refresh' content='0; url=$forward_to?$params'>\n";

to be

    echo "<meta http-equiv='Refresh' content='20; url=$forward_to?$params'>\n";

?

What did you want to achieve?
The function meta_forward() is used in 32 files in FA - which one are you referring to?

Re: meta_forward

@ apmuthu  you are right i am done : echo "<meta http-equiv='Refresh' content='20; url=$forward_to?$params'>\n";

but redirecting is not happening as with 20 sec ... its redirect within 3-4 sec only... i dont why but its true.

" The function meta_forward() is used in 32 files in FA "  can you breif me about this ? .  i dont know which 32 file you are talking about ..

i have made my own Page.php and in that i am using meta_forward()

Re: meta_forward

If it is called by ajax, then each ajax call will appear at the frequency by which it is called.

6 (edited by tester1 11/29/2013 05:42:25 am)

Re: meta_forward

dude listen , why i am using meta_forward().

i have made my own page.php ( page.php?id=1&trans_no=3)  which carries all information of id =1 ( from main.php ) as like parameter query string. i have my CRUD type area

as same like under manufacturing/search_work_orders.php? -- after editing any of your resp reference id you will be n page manufacturing/work_order_entry.php?trans_no=11  , now click update  now its change to /manufacturing/work_order_entry.php?UpdatedID=11 where you see many Anchor link like option ( Enter a new work order , Select an existing work order ) which means you have to now CLICK on this reps links.  which was very annoying for me for each records , hence i change hyperlink to metaforward function...

now all is working fine execpt that redirection second i:e  echo "<meta http-equiv='Refresh' content='20; url=$forward_to?$params'>\n";  which i change from 0 to 20sec ,

as if some one want to  see error or etc he can see at-least between 20 sec which i have set or may increase .. ( error or other message , as this is my own page hence after Clicking Update button i have set my own link, error message etc. )

hence it redirected between sec , and because of this some error if occurs is not seen.

Re: meta_forward

Try all lowercase and switching quotes:

echo '<meta http-equiv="refresh" content="20; url=' . $forward_to . '?' . $params . '">' . "\n";

8 (edited by tester1 11/30/2013 09:44:26 am)

Re: meta_forward

i already tried this , not working :

but i got to know its because of BUTTON ( <button type='submit'  >) - if i use this then its redirected in 0 sec and not taking content='20 which i have set for meta_forward

but for <input type='submit' onclick='javascript: return testfunction();' > if click on this then redirection is waiting till 20sec.

let you know edit and add are on my Button  ( as per FA ), but i have change for delete ( instead of button i have used INPUT with type submit as define above  and have onlick function for popup ( " are you sure to delete this record ").

As FA directly allow to delete record without any warning , hence i made that .

Re: meta_forward

sorry , i was think like that , but no its not working for edit and add too ( as i changed edit and add  button function from button to input  as i did for delete ) but its not working its redirecting in sec .

but dont no its working perfect for delete ( as same function i tried for edit , but no luck )

Re: meta_forward

Clear Browser cache and server cache - company/#/js/*.js and the template cache on the server and try it by logging in freshly - no stale sessions.

Re: meta_forward

dude  that to done , but still not working sad

can you please try from youside ?